/* =========================================
   Sokolink - Auth (Login/Signup)
   ========================================= */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background-color: var(--color-gray-100);
}

/* ============ MARKETING SIDEBAR ============ */
.auth-marketing-panel {
    flex: 0 0 42%;
    background: linear-gradient(135deg, var(--color-primary) 0%, #0f3d82 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.auth-marketing-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.marketing-content {
    max-width: 380px;
    position: relative;
    z-index: 1;
}

.marketing-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.marketing-logo i {
    font-size: 2rem;
}

.marketing-logo .logo-text {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.marketing-tagline {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.marketing-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.marketing-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.marketing-feature-icon {
    flex: 0 0 44px;
    height: 44px;
    background: rgba(255,255,255,0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.marketing-feature-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.marketing-feature-text p {
    font-size: 0.82rem;
    opacity: 0.85;
    line-height: 1.45;
    margin: 0;
}

.marketing-testimonial {
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 1.25rem;
}

.marketing-testimonial i {
    opacity: 0.4;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    display: block;
}

.marketing-testimonial p {
    font-size: 0.85rem;
    font-style: italic;
    line-height: 1.55;
    margin: 0 0 0.5rem 0;
    opacity: 0.9;
}

.testimonial-author {
    font-size: 0.78rem;
    opacity: 0.7;
    font-weight: 500;
}

/* ============ AUTH FORMS PANEL ============ */
.auth-forms-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--border-radius-lg);
    padding: 32px;
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-header .logo {
    justify-content: center;
    margin-bottom: 12px;
}

.auth-subtitle {
    font-size: var(--text-base);
    color: var(--color-gray-500);
}

.auth-form {
    margin-top: 0;
}

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

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: var(--text-sm);
    color: var(--color-gray-500);
}

.auth-switch p {
    font-size: var(--text-sm);
}

/* ============ RESPONSIVE: MOBILE STACK ============ */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }

    .auth-marketing-panel {
        flex: none;
        padding: 2rem 1.5rem 1.5rem;
    }

    .marketing-features {
        gap: 1rem;
    }

    .marketing-feature-text p {
        display: none;
    }

    .marketing-testimonial {
        display: none;
    }

    .marketing-tagline {
        margin-bottom: 1.5rem;
    }

    .auth-forms-panel {
        padding: 1.5rem 1rem 2rem;
    }
}

/* ─── Forgot Password Modal ────────────────────────────── */

.auth-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    padding: 20px;
}

.auth-modal-overlay.hidden {
    display: none;
}

.auth-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    overflow: hidden;
}

.auth-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #e5e7eb;
}

.auth-modal-header h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-modal-header h3 i {
    color: var(--color-primary, #4f46e5);
}

.auth-modal-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.auth-modal-close:hover {
    color: #374151;
    background: #f3f4f6;
}

.auth-modal-body {
    padding: 22px;
}

.auth-modal-body.hidden {
    display: none;
}

.auth-modal-description {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 18px;
    line-height: 1.5;
}

.auth-modal-success {
    text-align: center;
    margin-bottom: 18px;
}

.auth-modal-success > i {
    font-size: 40px;
    color: var(--color-primary, #4f46e5);
    margin-bottom: 10px;
    display: block;
}

.auth-modal-success > i.success-green {
    color: #10b981;
}

.auth-modal-success p {
    margin: 4px 0;
    font-size: 14px;
    color: #374151;
}

.auth-modal-footer {
    padding: 14px 22px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.auth-modal-footer p {
    font-size: 11px;
    color: #9ca3af;
    margin: 0;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.auth-modal-footer p i {
    margin-top: 2px;
    flex-shrink: 0;
}

/* Forgot password fields use same wrapper styles */
.auth-modal-body .form-group {
    margin-bottom: 16px;
}

.auth-modal-body .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.auth-modal-body .input-wrapper {
    position: relative;
}

.auth-modal-body .input-wrapper input {
    width: 100%;
    padding: 10px 12px 10px 38px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.auth-modal-body .input-wrapper input:focus {
    outline: none;
    border-color: var(--color-primary, #4f46e5);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
}

.auth-modal-body .input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 14px;
}

.auth-modal-body .toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
}

.auth-modal-body .toggle-password:hover {
    color: #374151;
}

.auth-modal-body .field-error {
    display: block;
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
    min-height: 16px;
}

.auth-modal-body .btn-full {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ============================================================
   PHONE-AS-IDENTITY TWEAKS
   ============================================================
   The phone number used to be a small extra field wedged between
   the password boxes, so it was styled with no bottom margin.
   It is now a normal, required field like the others, so it needs
   the same breathing room - otherwise the sign-in form looks
   cramped compared with every other field. */
.auth-form .phone-field,
.auth-modal-body .phone-field {
    margin-bottom: 16px;
}

/* The phone label used to be deliberately smaller than the others,
   because it was a secondary field tucked inside the signup form.
   Now it sits directly above Country and Password, so it has to match
   them or the form looks accidentally mismatched. */
.auth-form .phone-field label,
.auth-modal-body .phone-field label {
    font-size: var(--text-sm);
    color: var(--color-gray-700);
}

/* The quiet "(optional)" note next to the email label. Same grey as
   the placeholder text so it reads as a hint, not as a warning. */
.label-optional {
    font-weight: 400;
    font-size: var(--text-xs);
    color: var(--color-gray-500);
}
