/* =====================================================
   AYORemit Login — login.css
   Design tokens → layout → components → responsive
   ===================================================== */

/* ── TOKENS ─────────────────────────────────────────── */
:root {
    --navy:        #0F1B3D;
    --navy-deep:   #080E22;
    --navy-mid:    #1A2D5A;
    --teal:        #00C9B1;
    --teal-dim:    rgba(0, 201, 177, 0.15);
    --teal-glow:   rgba(0, 201, 177, 0.35);
    --white:       #FFFFFF;
    --off-white:   #F8FAFF;
    --ink:         #0F1B3D;
    --slate:       #64748B;
    --slate-light: #94A3B8;
    --border:      #E2E8F0;
    --error:       #EF4444;
    --error-bg:    #FEF2F2;
    --success:     #10B981;
    --success-bg:  #F0FDF4;
    --info:        #3B82F6;
    --info-bg:     #EFF6FF;

    --radius-sm:   8px;
    --radius-md:   14px;
    --radius-lg:   20px;

    --font-sans:   -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── RESET / BASE ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-sans);
    background: var(--off-white);
    color: var(--ink);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ── SHELL LAYOUT ────────────────────────────────────── */
.login-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ── BRAND PANEL (LEFT) ──────────────────────────────── */
.brand-panel {
    background: linear-gradient(145deg, var(--navy-deep) 0%, var(--navy-mid) 60%, #1E3A6E 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

.brand-panel__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 52px;
    width: 100%;
    min-height: 100vh;
}

/* Logo */
.brand-logo img {
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

/* Hero copy */
.brand-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0;
}

.brand-hero__eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 20px;
}

.brand-hero__headline {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--white);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.brand-hero__accent {
    color: var(--teal);
    position: relative;
    display: inline-block;
}

/* The signature element: teal underline that draws in on load */
.brand-hero__accent::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--teal);
    border-radius: 2px;
    animation: drawUnderline 1s var(--ease-out) 0.5s forwards;
}

@keyframes drawUnderline {
    to { width: 100%; }
}

.brand-hero__sub {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Currency ticker */
.currency-ticker {
    overflow: hidden;
    margin-bottom: 32px;
}

.currency-ticker__track {
    display: flex;
    gap: 10px;
    animation: ticker 28s linear infinite;
    width: max-content;
}

@keyframes ticker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.pill {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 999px;
    white-space: nowrap;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

/* Trust badges */
.trust-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.trust-badge svg {
    color: var(--teal);
    flex-shrink: 0;
}

/* Decorative orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.orb--1 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(0, 201, 177, 0.12) 0%, transparent 70%);
    top: -80px;
    right: -100px;
}

.orb--2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(30, 58, 110, 0.8) 0%, transparent 70%);
    bottom: 60px;
    left: -60px;
}

/* ── FORM PANEL (RIGHT) ──────────────────────────────── */
.form-panel {
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 72px;
    position: relative;
}

.form-panel__help {
    position: absolute;
    bottom: 32px;
    left: 0;
    right: 0;
    text-align: center;
}

.help-trigger {
    background: none;
    border: none;
    color: var(--slate);
    font-size: 0.83rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
}

.help-trigger:hover {
    color: var(--ink);
    background: var(--off-white);
}

/* Mobile logo */
.mobile-logo {
    margin-bottom: 32px;
}

/* ── ALERTS ──────────────────────────────────────────── */
.alerts-zone {
    margin-bottom: 24px;
}

.ayo-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 10px;
    animation: slideDown 0.3s var(--ease-out);
}

.ayo-alert svg { flex-shrink: 0; margin-top: 1px; }

.ayo-alert--success { background: var(--success-bg); color: #065F46; border-left: 3px solid var(--success); }
.ayo-alert--error   { background: var(--error-bg);   color: #991B1B; border-left: 3px solid var(--error); }
.ayo-alert--info    { background: var(--info-bg);    color: #1E40AF; border-left: 3px solid var(--info); }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── STEP CONTENT ────────────────────────────────────── */
.step-content {
    display: none;
    animation: stepIn 0.35s var(--ease-out);
}

.step-content.active {
    display: block;
}

@keyframes stepIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── FORM ELEMENTS ───────────────────────────────────── */
.step-heading {
    margin-bottom: 8px;
}

.step-heading__title {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 8px;
}

.step-heading__sub {
    font-size: 0.9rem;
    color: var(--slate);
    margin-bottom: 32px;
    line-height: 1.5;
}

.ayo-field {
    margin-bottom: 20px;
}

.ayo-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--slate);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.ayo-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    color: var(--ink);
    background: var(--off-white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    font-family: var(--font-sans);
}

.ayo-input::placeholder { color: var(--slate-light); }

.ayo-input:focus {
    border-color: var(--teal);
    background: var(--white);
    box-shadow: 0 0 0 3px var(--teal-glow);
}

/* Password wrapper */
.ayo-input-wrap {
    position: relative;
}

.ayo-input-wrap .ayo-input {
    padding-right: 48px;
}

.ayo-toggle-pw {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--slate-light);
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
}

.ayo-toggle-pw:hover { color: var(--ink); }

/* OTP input — larger, centred */
.ayo-input--otp {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-align: center;
}

/* ── PRIMARY BUTTON ──────────────────────────────────── */
.ayo-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px 24px;
    background: var(--teal);
    color: var(--navy-deep);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.ayo-btn-primary:hover {
    background: #00B39F;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 201, 177, 0.35);
}

.ayo-btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Arrow icon on button */
.ayo-btn-primary svg {
    transition: transform 0.2s;
}
.ayo-btn-primary:hover svg {
    transform: translateX(3px);
}

/* ── BACK BUTTON ─────────────────────────────────────── */
.ayo-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--slate);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    margin-bottom: 28px;
    transition: color 0.2s, gap 0.2s;
}

.ayo-btn-back:hover {
    color: var(--ink);
    gap: 10px;
}

/* ── SECONDARY LINKS ─────────────────────────────────── */
.ayo-links-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.ayo-link {
    font-size: 0.83rem;
    color: var(--slate);
    text-decoration: none;
    transition: color 0.2s;
}

.ayo-link:hover { color: var(--teal); text-decoration: none; }
.ayo-link--primary { color: var(--teal); font-weight: 600; }

/* Divider */
.ayo-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0;
    color: var(--slate-light);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ayo-divider::before,
.ayo-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Sign-up row */
.ayo-signup-row {
    text-align: center;
    font-size: 0.875rem;
    color: var(--slate);
}

/* Resend button */
.ayo-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--off-white);
    border: 1.5px solid var(--border);
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    margin-top: 12px;
}

.ayo-btn-ghost:hover {
    border-color: var(--teal);
    background: var(--teal-dim);
    color: var(--ink);
}

/* Resend hint */
.resend-hint {
    font-size: 0.82rem;
    color: var(--slate-light);
    margin-top: 20px;
}

/* QR / app-download panel */
.app-download-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
    background: var(--off-white);
    border-radius: var(--radius-md);
    margin-top: 32px;
}

.app-download-panel img {
    width: 100px;
    margin-bottom: 12px;
}

.app-download-panel__title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}

.app-download-panel__sub {
    font-size: 0.8rem;
    color: var(--slate);
    line-height: 1.5;
}

/* QR code image (large) */
.qr-img { width: 120px; border-radius: var(--radius-sm); }

/* ── MODAL ───────────────────────────────────────────── */
.ayo-modal {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.ayo-modal__header {
    background: var(--navy);
    border-bottom: none;
    padding: 20px 24px;
}

.ayo-modal__title {
    color: var(--white);
    font-weight: 700;
    font-size: 1.05rem;
}

.ayo-modal__body {
    padding: 28px 24px;
}

.ayo-modal__sub {
    font-size: 0.9rem;
    color: var(--slate);
    margin-bottom: 20px;
}

.ayo-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
    border: none;
    cursor: pointer;
}

.ayo-btn:hover { opacity: 0.88; transform: translateY(-1px); text-decoration: none; }

.ayo-btn--whatsapp { background: #25D366; color: var(--white); }
.ayo-btn--email    { background: var(--off-white); color: var(--ink); border: 1.5px solid var(--border); }
.ayo-btn--email:hover { border-color: var(--teal); color: var(--ink); }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 991px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .brand-panel {
        display: none;
    }

    .form-panel {
        padding: 40px 32px 80px;
        min-height: 100vh;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .form-panel {
        padding: 32px 20px 80px;
    }

    .step-heading__title {
        font-size: 1.5rem;
    }
}

/* ── PARSLEY ERROR OVERRIDES ─────────────────────────── */
.parsley-errors-list {
    list-style: none;
    padding: 0;
    margin-top: 6px;
}

.parsley-errors-list li {
    font-size: 0.78rem;
    color: var(--error);
    display: flex;
    align-items: center;
    gap: 4px;
}

.parsley-errors-list li::before {
    content: '⚠';
    font-size: 0.7rem;
}

.ayo-input.parsley-error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.ayo-input.parsley-success {
    border-color: var(--success);
}