/* EAFTOS Authentication Pages (Signup, Login, Password Reset) */

/* ========================================
   AUTH PAGE LAYOUT
   ======================================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
}

.auth-container {
    width: 100%;
    max-width: 1000px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    display: flex;
}

/* ========================================
   SPLIT SCREEN LAYOUT (Signup)
   ======================================== */
.auth-branding {
    flex: 0 0 40%;
    background: linear-gradient(135deg, #1976d2, #14b8a6);
    padding: 3rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-branding-logo {
    width: 100px;
    height: auto;
    margin-bottom: 2rem;
}

.auth-branding h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.auth-branding p {
    font-size: 1.125rem;
    opacity: 0.95;
    line-height: 1.6;
    margin-bottom: 2rem;
}

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

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

.auth-branding-features li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-weight: bold;
}

.auth-form-container {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ========================================
   CENTERED LAYOUT (Login, Reset)
   ======================================== */
.auth-container.centered {
    max-width: 480px;
    display: block;
}

.auth-container.centered .auth-form-container {
    padding: 3rem 2.5rem;
}

/* ========================================
   AUTH FORM STYLES
   ======================================== */
.auth-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-form-logo {
    width: 100px;
    height: auto;
    margin-bottom: 1rem;
}

.auth-form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.auth-form-subtitle {
    color: #64748b;
    font-size: 1rem;
}

/* Plan Selection Banner */
.plan-selection-banner {
    background: #e3f2fd;
    border: 1px solid #1976d2;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plan-selection-info {
    font-weight: 500;
    color: #1e293b;
}

.plan-selection-price {
    color: #1976d2;
    font-weight: 600;
}

.plan-change-link {
    font-size: 0.875rem;
    color: #1976d2;
    text-decoration: none;
}

.plan-change-link:hover {
    text-decoration: underline;
}

/* OAuth Buttons */
.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #1e293b;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.oauth-btn:hover {
    border-color: #1976d2;
    background: #f8fafc;
}

.oauth-btn-linkedin {
    background: #0077b5;
    color: white;
    border-color: #0077b5;
}

.oauth-btn-linkedin:hover {
    background: #006399;
    border-color: #006399;
}

.oauth-btn-google {
    background: white;
    border-color: #dadce0;
}

.oauth-btn-icon {
    width: 20px;
    height: 20px;
}

/* Form Separator */
.form-separator {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 500;
}

.form-separator::before,
.form-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.form-separator::before {
    margin-right: 1rem;
}

.form-separator::after {
    margin-left: 1rem;
}

/* Form Fields */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1e293b;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.form-input.error {
    border-color: #ef4444;
}

.form-input.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-error-message {
    display: block;
    margin-top: 0.375rem;
    color: #ef4444;
    font-size: 0.875rem;
}

.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.25rem;
}

.password-toggle:hover {
    color: #1e293b;
}

/* Checkbox/Agreement */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin: 1.25rem 0;
}

.form-checkbox input[type="checkbox"] {
    margin-top: 0.25rem;
    cursor: pointer;
}

.form-checkbox label {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.5;
}

.form-checkbox a {
    color: #1976d2;
    text-decoration: none;
}

.form-checkbox a:hover {
    text-decoration: underline;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 0.875rem;
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-btn:hover:not(:disabled) {
    background: #1565c0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

.submit-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

/* Form Footer Links */
.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #64748b;
    font-size: 0.95rem;
}

.form-footer a {
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
}

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

.forgot-password-link {
    display: block;
    text-align: right;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #1976d2;
    text-decoration: none;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

/* Success/Info Messages */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #dcfce7;
    border: 1px solid #10b981;
    color: #15803d;
}

.alert-info {
    background: #dbeafe;
    border: 1px solid #3b82f6;
    color: #1e40af;
}

.alert-warning {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    color: #92400e;
}

.alert-danger {
    background: #fee2e2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .auth-page {
        padding: 1rem;
    }
    
    .auth-container {
        flex-direction: column;
        border-radius: 16px;
    }
    
    .auth-branding {
        padding: 2rem;
    }
    
    .auth-branding h2 {
        font-size: 1.5rem;
    }
    
    .auth-form-container {
        padding: 2rem 1.5rem;
    }
    
    .auth-form-title {
        font-size: 1.5rem;
    }
}
