/* ================================================================
   AUTH PAGES — Modern split-screen design
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body.auth-page {
    height: auto;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #1e293b;
    background: #f1f5f9;
}

/* ── Left brand panel ── */
.auth-panel {
    width: 400px;
    min-height: 100vh;
    flex-shrink: 0;
    background: linear-gradient(160deg, #016937 0%, #013d20 100%);
    display: flex;
    flex-direction: column;
    padding: 48px 40px;
    color: #fff;
}

.auth-panel__logo {
    margin-bottom: 40px;
    opacity: .95;
}

.auth-panel__logo svg .cls-1 { fill: #fff; }
.auth-panel__logo svg .cls-2 { fill: rgba(255,255,255,.6); }

.auth-panel__tagline {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.02em;
    margin-bottom: 8px;
}

.auth-panel__sub {
    font-size: 14px;
    color: rgba(255,255,255,.7);
    margin-bottom: 40px;
    line-height: 1.6;
}

.auth-panel__features {
    list-style: none;
    padding: 0;
    margin: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-panel__feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255,255,255,.88);
}

.auth-panel__feature-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 10px;
    margin-top: 1px;
}

.auth-panel__footer {
    margin-top: 48px;
    font-size: 11px;
    color: rgba(255,255,255,.45);
}

/* ── Right form area ── */
.auth-form-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    min-height: 100vh;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(0,0,0,.08);
    padding: 40px;
}

.auth-card--wide { max-width: 600px; }

.auth-card__title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: #0f172a;
    margin: 0 0 4px;
}

.auth-card__subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 28px;
}

/* ── Form fields ── */
.auth-field {
    margin-bottom: 16px;
}

.auth-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 6px;
}

.auth-input {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    color: #0f172a;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none;
}

.auth-input:focus {
    border-color: #016937;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(1,105,55,.12);
}

.auth-input::placeholder { color: #94a3b8; }

.auth-input.parsley-error {
    border-color: #ef4444;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}
.auth-input.parsley-success {
    border-color: #22c55e;
    background: #fff;
}

/* Parsley error messages */
.parsley-errors-list {
    list-style: none;
    margin: 5px 0 0;
    padding: 0;
}
.parsley-errors-list li {
    font-size: 11.5px;
    font-weight: 500;
    color: #dc2626;
    display: flex;
    align-items: center;
    gap: 4px;
}
.parsley-errors-list li::before {
    content: '\f071';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 10px;
}

/* ── Auth button ── */
.auth-btn {
    display: block;
    width: 100%;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: #016937;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s, transform .1s;
    text-align: center;
    text-decoration: none;
    line-height: 1.5;
}
.auth-btn:hover  { background: #015a2e; color: #fff; }
.auth-btn:active { transform: scale(.99); }

.auth-btn--outline {
    background: transparent;
    border: 1.5px solid #e2e8f0;
    color: #475569;
}
.auth-btn--outline:hover { background: #f8fafc; color: #0f172a; }

/* ── Divider ── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #94a3b8;
    font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* ── Alerts ── */
.auth-alert {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}
.auth-alert i { margin-top: 1px; flex-shrink: 0; }
.auth-alert--success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.auth-alert--warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.auth-alert--info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.auth-alert--danger  { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ── Links row ── */
.auth-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 20px;
    font-size: 13px;
    color: #64748b;
    justify-content: center;
}

.auth-links a {
    color: #016937;
    text-decoration: none;
    font-weight: 500;
}
.auth-links a:hover { text-decoration: underline; }

.auth-links__sep {
    color: #cbd5e1;
}

/* ── Google button ── */
.gsi-material-button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    color: #1e293b;
    cursor: pointer;
    transition: background .13s;
    justify-content: center;
}
.gsi-material-button:hover { background: #f8fafc; }
.gsi-material-button-icon svg { width: 18px; height: 18px; display: block; }
.gsi-material-button-state,
.gsi-material-button-contents span[style*="display: none"] { display: none !important; }

/* ── OTA resend ── */
.auth-resend {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    padding: 0;
}
.auth-resend:not([disabled]):hover { color: #016937; }
.auth-resend[disabled] { opacity: .5; cursor: not-allowed; }

/* ── Subscription plan cards (register) ── */
.auth-plans {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.auth-plan-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    user-select: none;
}
.auth-plan-card:hover { border-color: #016937; background: #f0fdf4; }
.auth-plan-card.selected { border-color: #016937; background: #f0fdf4; }
.auth-plan-card--disabled {
    opacity: .45;
    pointer-events: none;
    border-style: dashed;
}

.auth-plan-card input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #016937;
    cursor: pointer;
    flex-shrink: 0;
}

.auth-plan-card__icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #016937;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.auth-plan-card__body { flex: 1; }

.auth-plan-card__name {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.auth-plan-card__price {
    font-size: 12px;
    color: #64748b;
    margin-top: 1px;
}

.auth-plan-card__badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    background: #dcfce7;
    color: #166534;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
}

.not-available {
    color: #dc2626;
    font-size: 11px;
    margin-top: 2px;
}

/* ── Register form grid ── */
.auth-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}
@media (max-width: 520px) {
    .auth-row { grid-template-columns: 1fr; }
}

/* ── Section heading ── */
.auth-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #64748b;
    margin: 24px 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.auth-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* ── Checkbox row ── */
.auth-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    cursor: pointer;
}
.auth-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #016937;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}
.auth-check a { color: #016937; font-weight: 500; }

/* ── intl-tel-input fix ── */
.iti { width: 100%; display: block; margin: 0; }
.iti input { width: 100%; }
.iti__country-list { z-index: 99; }


/* ── country-select fix ── */
.country-select { display: block; margin: 0; z-index: 4; }
.country-select .selected-flag { border-radius: 8px 0 0 8px; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .auth-panel { width: 320px; padding: 36px 28px; }
}

@media (max-width: 700px) {
    body.auth-page { flex-direction: column; }

    .auth-panel {
        width: 100%;
        min-height: auto;
        height: auto;
        position: relative;
        padding: 24px 20px 20px;
    }

    .auth-panel__features,
    .auth-panel__sub,
    .auth-panel__footer { display: none; }

    .auth-panel__tagline { font-size: 16px; margin-bottom: 0; }
    .auth-panel__logo { margin-bottom: 12px; }

    .auth-form-area {
        padding: 24px 16px;
        min-height: auto;
    }

    .auth-card { padding: 28px 20px; border-radius: 12px; }
}
