/* =========================================================
   TravoByte CRM - Authentication pages (login, forgot / reset password)
   "Agency desk" concept: dark brand panel for Indian B2C agencies (enquiry -> quote -> UPI payment), clean white sign-in panel
   ========================================================= */
:root {
    --tb-blue: #026bcb;
    --tb-indigo: #4f46e5;
    --tb-red: #ee2239;
    --tb-ink: #14213d;
    --tb-muted: #66748b;
    --tb-line: #e3e9f3;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body.auth { margin: 0; font-family: 'Inter', system-ui, sans-serif; color: var(--tb-ink); background: #f6f8fc; -webkit-font-smoothing: antialiased; }

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(420px, .8fr); }

/* Brand mark */
.auth-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; position: relative; z-index: 1; }
.auth-brand img { width: 42px; height: 42px; border-radius: 13px; background: #fff; padding: 5px; }
.auth-brand span { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 23px; letter-spacing: -.02em; color: var(--tb-ink); }
.auth-brand.light span { color: #fff; }
.auth-brand em { font-style: normal; color: var(--tb-red); }
.auth-brand.mobile { display: none; margin-bottom: 26px; }

/* ---------------- Left: brand story ---------------- */
.auth-story { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 26px; padding: 34px 48px 30px;
    color: #e6ebff; background: linear-gradient(155deg, #0a1538 0%, #101c4d 55%, #1b1650 100%); }
.auth-story::before { content: ""; position: absolute; inset: 0; opacity: .5;
    background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000, transparent 85%); }
.glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.glow.g1 { width: 420px; height: 420px; right: -120px; top: -120px; background: #2f6bff; }
.glow.g2 { width: 360px; height: 360px; left: -140px; bottom: -80px; background: #ee2239; opacity: .3; }
.story-copy { position: relative; z-index: 1; max-width: 640px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 600; color: #fff; padding: 7px 14px 7px 8px;
    border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.eyebrow .tri { width: 22px; height: 14px; border-radius: 3px; background: linear-gradient(180deg, #ff9933 0 33.3%, #ffffff 33.3% 66.6%, #138808 66.6%); position: relative; }
.eyebrow .tri::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: #000080; }
.story-copy h1 { font-family: 'Outfit', sans-serif; font-size: clamp(32px, 3.3vw, 50px); line-height: 1.08; font-weight: 800; letter-spacing: -.03em; margin: 18px 0 14px; color: #fff; }
.story-copy h1 span { background: linear-gradient(90deg, #ffb347, #ff6a5c 50%, #ff4f8b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.story-copy p { color: #b9c3e6; font-size: 16px; line-height: 1.65; margin: 0 0 28px; max-width: 560px; }

/* Enquiry -> quote -> payment cards */
.flow { position: relative; height: 250px; max-width: 560px; }
.fcard { position: absolute; background: #fff; color: var(--tb-ink); border-radius: 18px; padding: 14px 16px; box-shadow: 0 24px 50px rgba(3, 8, 30, .45); animation: rise .8s ease both; }
.fcard small { display: block; font-size: 11.5px; color: #66748b; }
.fcard b { font-size: 14px; }
.fhead { display: flex; align-items: center; gap: 10px; }
.fhead > div { flex: 1; }
.ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-size: 17px; flex-shrink: 0; }
.ic.wa { background: #1faa59; } .ic.qt { background: linear-gradient(135deg, #2b8cff, #4f46e5); } .ic.ok { background: #0f9d58; }
.tag { font-size: 11px; font-weight: 700; color: #b4231a; background: #ffe4df; padding: 3px 9px; border-radius: 999px; }
.fbody { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #e3e9f3; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: #42516b; }
.fbody b { width: 100%; font-size: 15px; color: var(--tb-ink); }
.fbody i { color: var(--tb-blue); }
.fcard.lead { left: 0; top: 0; width: 300px; }
.fcard.quote { left: 230px; top: 92px; width: 270px; animation-delay: .25s; }
.fcard.quote .amount { margin-top: 10px; font-family: 'Outfit', sans-serif; font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: #0f1f3d; }
.fcard.quote .amount small { display: inline; font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500; }
.fcard.paid { left: 40px; top: 186px; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 16px; animation-delay: .5s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Destination ticker */
.dest { position: relative; z-index: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.dest .track { display: flex; gap: 10px; width: max-content; animation: ticker 40s linear infinite; }
.dest span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: #dfe5ff; padding: 8px 14px; border-radius: 999px;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); white-space: nowrap; }
.dest span i { color: #ffb347; }
@keyframes ticker { to { transform: translateX(-50%); } }

.story-foot { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 13px; color: #c3cbea; }
.story-foot span { display: inline-flex; align-items: center; gap: 7px; }
.story-foot i { color: #8fb4ff; }

/* ---------------- Right: sign-in panel ---------------- */
.auth-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; background: #fff; position: relative; }
.auth-panel::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--tb-blue), var(--tb-indigo), var(--tb-red)); }
.auth-card { width: 100%; max-width: 400px; }
.panel-foot { position: absolute; bottom: 20px; font-size: 12px; color: #8a97ad; }
.auth-card h2 { font-family: 'Outfit', sans-serif; font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 6px; color: #0f1f3d; }
.auth-card .sub { color: var(--tb-muted); margin: 0 0 28px; font-size: 15px; }

.field { position: relative; margin-bottom: 16px; }
.field .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #7b8699; font-size: 18px; pointer-events: none; transition: color .2s; }
.field input { width: 100%; height: 58px; border: 1.5px solid var(--tb-line); border-radius: 16px; padding: 22px 48px 6px 48px; font-size: 15px; font-family: inherit;
    color: var(--tb-ink); background: #fbfcff; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.field label { position: absolute; left: 48px; top: 50%; transform: translateY(-50%); color: #6b778c; font-size: 15px; pointer-events: none; transition: all .18s ease; }
.field input:focus { border-color: var(--tb-blue); background: #fff; box-shadow: 0 0 0 5px rgba(2, 107, 203, .12); }
.field input:focus ~ .icon { color: var(--tb-blue); }
.field input:focus + label, .field input:not(:placeholder-shown) + label { top: 17px; font-size: 11.5px; font-weight: 600; color: var(--tb-blue); }
.field.invalid input { border-color: var(--tb-red); }
.field.invalid input:focus { box-shadow: 0 0 0 5px rgba(238, 34, 57, .12); }
.field .toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; width: 38px; height: 38px; border-radius: 12px; color: #64748b; font-size: 18px; cursor: pointer; }
.field .toggle:hover { background: #eef3fb; }
.error-text { color: var(--tb-red); font-size: 13px; margin: -8px 0 14px 4px; display: flex; gap: 6px; align-items: center; }
.capslock { display: none; color: #b45309; font-size: 12.5px; margin: -8px 0 14px 4px; }
.capslock.show { display: flex; gap: 6px; align-items: center; }

.row-between { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 24px; font-size: 14px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: #334155; user-select: none; }
.check input { width: 18px; height: 18px; accent-color: var(--tb-blue); }
.link { color: var(--tb-blue); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

.btn-auth { position: relative; width: 100%; height: 56px; border: 0; border-radius: 16px; cursor: pointer; font-family: 'Outfit', sans-serif; font-size: 17px; font-weight: 700;
    color: #fff; overflow: hidden; background: linear-gradient(120deg, #1b8cff, var(--tb-blue) 45%, var(--tb-indigo)); box-shadow: 0 14px 30px rgba(2, 107, 203, .35);
    transition: transform .15s, box-shadow .2s; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.btn-auth:hover { transform: translateY(-1px); box-shadow: 0 18px 36px rgba(2, 107, 203, .42); }
.btn-auth::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); animation: shine 3.2s ease-in-out infinite; }
@keyframes shine { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.btn-auth .spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.btn-auth.loading .spinner { display: inline-block; }
.btn-auth.loading .label-arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.alert-box { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; font-size: 14px; margin-bottom: 20px; }
.alert-box.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-box.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }

.auth-foot { margin-top: 28px; display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; font-size: 12.5px; color: #8a97ad; }
.auth-foot span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 991.98px) {
    .auth-shell { grid-template-columns: 1fr; padding: 18px; }
    .auth-story { display: none; }
    .auth-brand.mobile { display: inline-flex; }
    .auth-panel { padding: 28px 20px 60px; }
}
@media (max-width: 1199.98px) { .auth-story { padding: 30px 32px; } .fcard.quote { left: 190px; } }
@media (prefers-reduced-motion: reduce) { .fcard, .dest .track, .btn-auth::after { animation: none; } }

/* Logo image */
.auth-brand img.logo { width: 170px; height: auto; border-radius: 0; padding: 0; background: none; }
.auth-brand.light img.logo { background: #fff; padding: 8px 14px; border-radius: 14px; width: 190px; box-shadow: 0 12px 28px rgba(3, 8, 30, .35); }
