/* ═══════════════════════════════════════════════════════════════════
   Auth Split-Screen Redesign  (Login + Register + Password reset + User-data)
   This is a standalone file so it can be uploaded once and won't be
   accidentally truncated by FTP transfers of the larger auth.css.
   ═══════════════════════════════════════════════════════════════════ */

.esim-v2-auth-shell {
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 60%);
    min-height: 100vh;
    padding: 0;
}

.auth-split-shell {
    --auth-accent: #2563eb;
    --auth-accent-strong: #1d4ed8;
    --auth-accent-soft: rgba(37, 99, 235, 0.14);
    --auth-accent-shadow: rgba(37, 99, 235, 0.22);
    width: 100%;
    padding: 40px 16px 60px;
}
.auth-split-shell--register {
    --auth-accent: #0d9488;
    --auth-accent-strong: #0f766e;
    --auth-accent-soft: rgba(13, 148, 136, 0.14);
    --auth-accent-shadow: rgba(13, 148, 136, 0.22);
}

.auth-split-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    max-width: 1180px;
    margin: 0 auto;
    align-items: start;
}

.auth-split-grid--single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
}

/* ── Left form column ─────────────────────────────────────── */
.auth-form-col { display: flex; justify-content: center; }

.auth-form-inner {
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border: 1px solid #d8dee7;
    border-radius: 18px;
    padding: 42px 44px 34px;
    box-shadow: 0 10px 34px rgba(15, 23, 42, 0.08);
}
.auth-form-inner--wide { max-width: 520px; }
.auth-form-inner--register {
    border-color: #bfe9e3;
    box-shadow: 0 10px 34px rgba(13, 148, 136, 0.10);
}

.auth-logo-link { display: inline-block; margin-bottom: 22px; }
.auth-brand-logo { height: 38px; width: auto; display: block; }

.auth-heading {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: 0;
    color: #0f172a;
    margin: 0 0 10px;
    line-height: 1.2;
}
.auth-form-inner--register .auth-heading { color: #0f3f3c; }

.auth-subheading {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.55;
    margin: 0 0 22px;
}

/* ── Form bits ────────────────────────────────────────────── */
.auth-form { display: block; }
.auth-field { margin-bottom: 16px; }

.auth-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}
.auth-field-grid > .auth-field { margin-bottom: 0; }

.auth-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}
.auth-label-hint {
    font-weight: 400;
    color: #94a3b8;
    margin-left: 4px;
    font-size: 0.78rem;
}

.auth-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.92rem;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
    outline: none;
    box-sizing: border-box;
}
.auth-input::placeholder { color: #cbd5e1; }
.auth-input:hover { border-color: #cbd5e1; }
.auth-input:focus {
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px var(--auth-accent-soft);
    background: #fff;
}
.auth-input[readonly] {
    background: #f8fafc;
    color: #475569;
    cursor: default;
}
.auth-input.lowercase-input { text-transform: lowercase; }

select.auth-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2364748b'%3e%3cpath d='M4.5 6l3.5 4 3.5-4z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 36px;
}

.auth-hint {
    display: block;
    font-size: 0.74rem;
    color: #94a3b8;
    margin-top: 6px;
    line-height: 1.5;
}

/* ── Password field ───────────────────────────────────────── */
.auth-password-wrap { position: relative; }
.auth-password-wrap .auth-input { padding-right: 44px; }

.auth-pass-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: color 0.15s, background-color 0.15s;
    padding: 0;
}
.auth-pass-toggle:hover {
    color: var(--auth-accent);
    background: #f8fafc;
}

/* ── Remember + Forgot row ───────────────────────────────── */
.auth-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 16px;
    flex-wrap: wrap;
}

.auth-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #475569;
    cursor: pointer;
    user-select: none;
    margin: 0;
}
.auth-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--auth-accent);
    cursor: pointer;
    margin: 0;
}
.auth-checkbox--block {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    padding: 4px 0;
    line-height: 1.5;
}
.auth-checkbox--block label {
    font-size: 0.82rem;
    color: #475569;
    cursor: pointer;
    margin: 0;
}

/* ── Links / muted text ──────────────────────────────────── */
.auth-link-muted {
    font-size: 0.85rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
}
.auth-link-muted:hover { color: var(--auth-accent); }

.auth-link-strong {
    color: var(--auth-accent);
    font-weight: 700;
    text-decoration: none;
}
.auth-link-strong:hover { color: var(--auth-accent-strong); text-decoration: underline; }

/* ── Turnstile area ──────────────────────────────────────── */
.auth-turnstile-wrap {
    margin: 8px 0 18px;
    min-height: 65px;
    display: flex;
    justify-content: center;
}
.auth-turnstile-wrap .cf-turnstile { width: 100%; }

.auth-human-label {
    margin: 2px 0 8px;
    color: #475569;
    font-size: 0.86rem;
    font-weight: 600;
}

/* ── Submit button ───────────────────────────────────────── */
.auth-btn-primary {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--auth-accent) 0%, var(--auth-accent-strong) 100%);
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.15s, filter 0.15s;
    margin-top: 2px;
    font-family: inherit;
    box-shadow: 0 10px 24px var(--auth-accent-shadow);
}
.auth-btn-primary:hover {
    filter: brightness(0.98);
    box-shadow: 0 14px 30px var(--auth-accent-shadow);
}
.auth-btn-primary:active { transform: translateY(1px); }
.auth-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Footer line ─────────────────────────────────────────── */
.auth-footer-text {
    text-align: center;
    font-size: 0.88rem;
    color: #475569;
    margin: 20px 0 0;
}

/* ── Mobile / dial-code combo (user-data) ─────────────────── */
.ud-mobile-wrap {
    display: flex;
    align-items: stretch;
    gap: 0;
}
.ud-mobile-wrap .ud-dial-code {
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: #475569;
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
    min-width: 60px;
    justify-content: center;
}
.ud-mobile-wrap .ud-mobile-input {
    border-radius: 0 10px 10px 0;
    flex: 1;
    min-width: 0;
}

/* ── Right info panel ────────────────────────────────────── */
.auth-info-panel {
    background: linear-gradient(155deg, #f0fdf4 0%, #ecfdf5 60%, #ffffff 100%);
    border: 1.5px solid #d1fae5;
    border-radius: 20px;
    padding: 36px 30px;
    height: 100%;
    box-shadow: 0 4px 24px rgba(16, 185, 129, 0.05);
}
.auth-info-inner { max-width: 480px; }

.auth-info-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #064e3b;
    line-height: 1.25;
    margin: 0 0 10px;
}
.auth-info-sub {
    font-size: 0.92rem;
    color: #047857;
    line-height: 1.6;
    margin: 0 0 22px;
}

.auth-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

.auth-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #ffffff;
    border: 1.5px solid #d1fae5;
    border-radius: 12px;
    padding: 12px;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.auth-feature-card:hover {
    transform: translateY(-2px);
    border-color: #6ee7b7;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.10);
}
.auth-feature-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #ecfdf5;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}
.auth-feature-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
    line-height: 1.3;
}
.auth-feature-desc {
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.5;
}

.auth-tip-card {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #ffffff;
    border: 1.5px solid #bbf7d0;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.78rem;
    color: #064e3b;
    line-height: 1.5;
}
.auth-tip-card i {
    color: #16a34a;
    font-size: 1rem;
    margin-top: 1px;
    flex-shrink: 0;
}

/* ── Social login overrides (work with existing social_login partial) ── */
.auth-form-col .esim-v2-social-wrap {
    margin: 0 0 18px;
}
.auth-form-col .sign-in__or {
    display: block;
    width: auto;
    margin: 14px auto 0;
    font-size: 0.72rem;
    color: #94a3b8;
    text-align: center;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    line-height: 1;
}
.auth-form-col .sign-in__or::before,
.auth-form-col .sign-in__or::after {
    display: none;
}
.auth-form-col .sign-in__or .or-text {
    display: inline-block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    white-space: nowrap;
}
.auth-form-col .sign-in__or .or-text::before { content: '-- '; }
.auth-form-col .sign-in__or .or-text::after { content: ' --'; }
.auth-form-col .esim-v2-social-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.auth-form-col .esim-v2-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    width: 100%;
    min-height: 50px;
    height: auto;
    padding: 12px 14px;
    border: 1px solid #dbe4ef;
    border-radius: 12px;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 750;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: border-color 0.15s, background-color 0.15s, transform 0.12s, box-shadow 0.15s;
    cursor: pointer;
    font-family: inherit;
}
.auth-form-col .esim-v2-social-btn svg,
.auth-form-col .esim-v2-social-btn img {
    flex: 0 0 auto;
}
.auth-form-col .esim-v2-social-btn:only-child {
    grid-column: 1 / -1;
}
.auth-form-col .esim-v2-social-btn:hover {
    border-color: #b9c7d8;
    background: #fbfdff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}
.auth-form-col .esim-v2-social-btn:active { transform: translateY(1px); }

/* ── Verification code box (password reset flow) ── */
.auth-form-col .verification-code-wrapper { width: 100%; }
.auth-form-col .verification-text {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 14px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .auth-split-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
        max-width: 540px;
    }
    .auth-info-panel { padding: 28px 22px; }
    .auth-info-title { font-size: 1.3rem; }
    .auth-feature-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 575.98px) {
    .auth-split-shell { padding: 18px 12px 36px; }
    .auth-form-inner {
        padding: 26px 20px 24px;
        border-radius: 14px;
    }
    .auth-heading { font-size: 1.4rem; }
    .auth-form-col .esim-v2-social-grid { grid-template-columns: 1fr; }
    .auth-field-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .auth-field-grid > .auth-field { margin-bottom: 14px; }
    .auth-feature-grid { grid-template-columns: 1fr; }
    .auth-info-panel {
        padding: 22px 18px;
        border-radius: 14px;
    }
}
