/* Authentication Pages Styles */

body {
    background: linear-gradient(135deg, var(--primary-coral), var(--primary-blue));
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.auth-container {
    display: flex;
    max-width: 1200px;
    width: 90%;
    margin: 2rem auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.auth-container.signup {
    max-width: 600px;
}

.auth-container.signup .auth-card {
    width: 100%;
}

.auth-card {
    flex: 1;
    padding: 3rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header .logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.auth-header h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.auth-form {
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.password-hint {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.checkbox-label input {
    width: auto;
    margin: 0;
}

.forgot-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.3s;
}

.forgot-link:hover {
    opacity: 0.8;
}

.auth-button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-button.primary {
    background: var(--primary-blue);
    color: #fff;
}

.auth-button.primary:hover {
    background: #0052A3;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 102, 204, 0.3);
}

.error-message,
.success-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
}

.error-message {
    background: #FFE5E5;
    color: #CC0000;
    border: 1px solid #FFCCCC;
}

.success-message {
    background: #E5F6E5;
    color: #006600;
    border: 1px solid #CCFFCC;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.auth-footer p {
    color: var(--text-light);
}

.auth-footer a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.auth-divider span {
    background: #fff;
    padding: 0 1rem;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.social-login {
    display: flex;
    gap: 1rem;
}

.social-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.social-button:hover {
    border-color: var(--primary-blue);
    background: var(--light-blue);
}

.social-button i {
    font-size: 1.2rem;
}

.social-button.google i {
    color: #4285F4;
}

.social-button.github i {
    color: #333;
}

/* Side panel for login page */
.auth-side {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-coral));
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.auth-side h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.features-list i {
    color: #90EE90;
}

/* Plan selection for signup */
.plan-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.plan-option {
    position: relative;
    cursor: pointer;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.3s;
}

.plan-option:hover {
    border-color: var(--primary-blue);
}

.plan-option.selected {
    border-color: var(--primary-blue);
    background: var(--light-blue);
}

.plan-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.plan-content {
    text-align: center;
}

.plan-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.plan-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.plan-content .price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-blue);
}

/* Responsive */
@media (max-width: 968px) {
    .auth-container {
        flex-direction: column;
        margin: 1rem;
    }
    
    .auth-side {
        padding: 2rem;
    }
    
    .auth-card {
        padding: 2rem;
    }
    
    .plan-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .auth-header h2 {
        font-size: 1.5rem;
    }
    
    .social-login {
        flex-direction: column;
    }
}