/* Tripsy by KYVERNITIS — sign-in, two-step verification, break-glass */
body.auth { background: #00175a; min-height: 100svh; overflow-x: hidden; }
.au { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(420px, 1fr); min-height: 100svh; }

/* ── Visual ─────────────────────────────────────────── */
.au-visual { position: relative; overflow: hidden; color: #fff; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(28px, 4vw, 56px);
  background: radial-gradient(80% 60% at 20% 10%, #0a4fb3 0%, transparent 60%), radial-gradient(70% 70% at 90% 90%, #007cbc 0%, transparent 55%), #00175a; }
.au-slides, .au-slide, .au-veil, .au-grain { position: absolute; inset: 0; margin: 0; }
.au-slides { z-index: -3; }
.au-slide { opacity: 0; transition: opacity 2.2s cubic-bezier(.22,.8,.24,1); }
.au-slide.on { opacity: 1; }
.au-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.au-slide.on img { animation: au-kb 16s linear forwards; }
@keyframes au-kb { from { transform: scale(1.14) translate3d(1.5%, 1%, 0); } to { transform: scale(1.02) translate3d(-1%, -1%, 0); } }
.au-veil { z-index: -2; background:
  linear-gradient(180deg, rgba(0,23,90,.72) 0%, rgba(0,23,90,.08) 34%, rgba(0,23,90,.1) 55%, rgba(0,16,64,.92) 100%),
  linear-gradient(90deg, rgba(0,23,90,.35), transparent 60%),
  radial-gradient(60% 50% at 85% 20%, rgba(110,173,228,.35), transparent 70%); }
.au-grain { z-index: -1; opacity: .16; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.au-orbit { position: absolute; z-index: -1; right: -18%; top: -22%; width: 70%; aspect-ratio: 1; pointer-events: none; }
.au-orbit i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); animation: au-spin 60s linear infinite; }
.au-orbit i:nth-child(2) { inset: 12%; border-color: rgba(110,173,228,.22); animation-duration: 45s; animation-direction: reverse; }
.au-orbit i:nth-child(3) { inset: 26%; border-style: dashed; border-color: rgba(255,255,255,.12); animation-duration: 90s; }
.au-orbit i::after { content: ''; position: absolute; top: 50%; left: -4px; width: 8px; height: 8px; border-radius: 50%; background: #6eade4; box-shadow: 0 0 18px 4px rgba(110,173,228,.7); }
@keyframes au-spin { to { transform: rotate(360deg); } }

.au-brand { display: flex; flex-direction: column; gap: 10px; animation: au-up 1s .1s both cubic-bezier(.22,.8,.24,1); }
.au-word { display: inline-flex; align-items: center; gap: 8px; font-size: clamp(40px, 4.4vw, 60px); font-weight: 800; letter-spacing: -.055em; line-height: .9; }
.au-word .ic { color: #6eade4; filter: drop-shadow(0 0 14px rgba(110,173,228,.8)); animation: au-twinkle 4s ease-in-out infinite; }
@keyframes au-twinkle { 50% { transform: rotate(18deg) scale(.86); opacity: .8; } }
.au-by { display: flex; align-items: center; gap: 12px; padding-left: 3px; }
.au-by span { font-family: var(--serif); font-style: italic; font-size: 17px; opacity: .8; }
.au-by img { height: 30px; width: auto; opacity: .95; }

.au-copy { max-width: 640px; animation: au-up 1.2s .3s both cubic-bezier(.22,.8,.24,1); }
.au-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: #cfe3f7; }
.au-kicker i { width: 34px; height: 1px; background: linear-gradient(90deg, #6eade4, transparent); }
.au-copy h1 { font-size: clamp(36px, 4.2vw, 64px); font-weight: 600; letter-spacing: -.045em; line-height: 1.02; margin: 16px 0 26px; text-wrap: balance; }
.au-copy h1 em { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; color: #bfdcf7; }
.au-place { display: flex; align-items: baseline; gap: 14px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); max-width: 440px; }
.au-place b { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.au-place span { font-family: var(--mono); font-size: 11.5px; opacity: .65; }
.au-place.in b, .au-place.in span { animation: au-fade .9s both; }
@keyframes au-fade { from { opacity: 0; transform: translateY(6px); } }
@keyframes au-up { from { opacity: 0; transform: translateY(22px); } }
.au-dots { position: absolute; right: clamp(28px, 4vw, 56px); bottom: clamp(28px, 4vw, 56px); display: flex; gap: 6px; }
.au-dots i { width: 22px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.28); transition: width .6s, background .6s; }
.au-dots i.on { width: 46px; background: #fff; }

/* ── Panel ──────────────────────────────────────────── */
.au-panel { position: relative; display: flex; flex-direction: column; background: #fff; padding: clamp(26px, 3.4vw, 48px) clamp(26px, 4.6vw, 72px); isolation: isolate; }
.au-panel::before { content: ''; position: absolute; z-index: -1; inset: 0; background: radial-gradient(70% 40% at 100% 0%, rgba(110,173,228,.16), transparent 70%), radial-gradient(50% 30% at 0% 100%, rgba(0,111,207,.06), transparent 70%); }
.au-top { display: flex; justify-content: flex-end; }
.au-kyv { height: 40px; width: auto; }
.au-form-wrap { flex: 1; display: grid; place-items: center; padding: 30px 0; }
.au-form { width: 100%; max-width: 400px; display: flex; flex-direction: column; animation: au-up 1s .2s both cubic-bezier(.22,.8,.24,1); }
.au-eyebrow { font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; font-weight: 800; color: #006fcf; }
.au-eyebrow.warn { color: #c03a3a; }
.au-form h2 { font-size: 44px; letter-spacing: -.05em; color: #00175a; margin: 10px 0 8px; line-height: 1; }
.au-form h2 em { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.01em; color: #006fcf; }
.au-lead { color: #53575a; font-size: 14.5px; margin-bottom: 26px; }
.au-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; color: #fff; background: linear-gradient(140deg, #006fcf, #00175a); box-shadow: 0 16px 30px -14px rgba(0,111,207,.9); }
.au-ic.warn { background: linear-gradient(140deg, #e0533f, #8f1f1f); box-shadow: 0 16px 30px -14px rgba(192,58,58,.9); }
.au-ic .ic { display: block; }

.au-field { position: relative; display: block; margin-bottom: 14px; }
.au-field > span { position: absolute; left: 46px; top: 9px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8a93a8; pointer-events: none; }
.au-field input { width: 100%; height: 62px; padding: 22px 48px 6px 46px; border-radius: 16px; border: 1.5px solid #e1e8f2; background: #f7f9fc; font-size: 15.5px; font-weight: 600; color: #00175a; outline: none; transition: border-color .2s, background .2s, box-shadow .2s; }
.au-field input:hover { border-color: #cbd8ea; }
.au-field input:focus { background: #fff; border-color: #006fcf; box-shadow: 0 0 0 5px rgba(0,111,207,.12); }
.au-field > .ic { position: absolute; left: 16px; top: 22px; color: #8a93a8; transition: color .2s; }
.au-field:focus-within > .ic { color: #006fcf; }
.au-eye { position: absolute; right: 10px; top: 13px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: #8a93a8; display: grid; place-items: center; }
.au-eye:hover, .au-eye.on { background: #eaf2fb; color: #006fcf; }
.au-eye .ic { display: block; }

.au-btn { position: relative; overflow: hidden; height: 60px; margin-top: 8px; border: 0; border-radius: 16px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #fff; font-size: 15px; font-weight: 700; letter-spacing: -.01em;
  background: linear-gradient(120deg, #00175a 0%, #0a3a9a 45%, #006fcf 100%); background-size: 180% 100%; background-position: 0 0;
  box-shadow: 0 18px 36px -16px rgba(0,23,90,.75); transition: background-position .6s cubic-bezier(.22,.8,.24,1), transform .2s, box-shadow .3s; }
.au-btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-120%); }
.au-btn:hover { background-position: 100% 0; box-shadow: 0 22px 44px -16px rgba(0,111,207,.85); }
.au-btn:hover::after { transform: translateX(120%); transition: transform 1s; }
.au-btn:active { transform: scale(.985); }
.au-btn .ic { transition: transform .3s; } .au-btn:hover .ic { transform: translateX(4px); }
.au-btn.warn { background: linear-gradient(120deg, #6d1414, #c03a3a); }
.au-form.busy .au-btn { pointer-events: none; opacity: .75; }
.au-form.busy .au-btn span::after { content: '…'; }

.au-err { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: #fdecec; color: #a12b2b; font-size: 13.5px; font-weight: 600; margin-bottom: 16px; animation: au-shake .45s; }
.au-err .ic { margin-top: 2px; flex: none; }
@keyframes au-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.au-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 20px; font-size: 12.5px; color: #8a93a8; }
.au-note .ic { color: #0e9c8c; }
.au-back { display: inline-flex; align-items: center; gap: 7px; margin-top: 22px; font-size: 13px; font-weight: 600; color: #53575a; align-self: center; }
.au-back .ic { transform: rotate(180deg); }
.au-back:hover { color: #006fcf; }

.au-otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 6px; }
.au-otp input { height: 66px; border-radius: 16px; border: 1.5px solid #e1e8f2; background: #f7f9fc; text-align: center; font: 700 26px/1 var(--mono); color: #00175a; outline: none; transition: border-color .2s, box-shadow .2s, background .2s, transform .2s; }
.au-otp input:nth-child(3) { margin-right: 10px; }
.au-otp input:focus { border-color: #006fcf; background: #fff; box-shadow: 0 0 0 5px rgba(0,111,207,.12); transform: translateY(-2px); }
.au-rec { margin-top: 18px; font-size: 13px; color: #53575a; }
.au-rec summary { cursor: pointer; font-weight: 600; text-align: center; list-style: none; }
.au-rec summary::-webkit-details-marker { display: none; }
.au-rec summary:hover { color: #006fcf; }
.au-rec[open] summary { margin-bottom: 14px; }

.au-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 11.5px; color: #8a93a8; }
.au-foot span { display: inline-flex; align-items: center; gap: 6px; }

/* Break-glass tint */
.is-bg .au-veil { background: linear-gradient(180deg, rgba(60,0,0,.55), rgba(0,23,90,.2) 40%, rgba(40,0,10,.9)); }
.is-bg .au-kicker::after { content: ' · emergency'; color: #ff9c8f; }

@media (max-width: 980px) {
  .au { grid-template-columns: 1fr; }
  .au-visual { min-height: 44svh; }
  .au-copy h1 { font-size: 34px; margin-bottom: 18px; }
  .au-orbit { width: 120%; }
  .au-dots { display: none; }
  .au-panel { padding: 26px 22px 22px; }
  .au-form h2 { font-size: 36px; }
  .au-kyv { height: 32px; }
}
@media (max-width: 420px) { .au-otp { gap: 6px; } .au-otp input { height: 56px; font-size: 22px; } .au-otp input:nth-child(3) { margin-right: 4px; } }
@media (prefers-reduced-motion: reduce) { .au *, .au *::before, .au *::after { animation: none !important; transition: none !important; } }
.au-word.tlogo { height: clamp(34px, 3vw, 42px); filter: drop-shadow(0 6px 24px rgba(0,10,40,.35)); }
.au-by .klogo { height: 22px; }
.au-kyv { height: 40px; }
.au-copy-r { display: inline-flex; align-items: center; gap: 6px; } .au-copy-r .klogo { height: 14px; opacity: .75; }
.au-inline { display: inline-flex; align-items: center; gap: 5px; vertical-align: -3px; font-weight: 600; }
.au-inline .tlogo { height: 18px; } .au-inline .klogo { height: 15px; }
@media (max-width: 980px) { .au-word.tlogo { height: 32px; } .au-by .klogo { height: 16px; } }
/* smooth motion */
.au-slides { contain: strict; }
.au-slide img { will-change: transform; backface-visibility: hidden; transform: translate3d(0,0,0) scale3d(1.12,1.12,1); }
.au-slide.on img { animation: kb-zoom 22s cubic-bezier(.33,0,.25,1) forwards; }
.au-grain { mix-blend-mode: normal; opacity: .05; }
/* Logo sits left, at its natural width */
.au-brand { align-items: flex-start; }
.au-brand .au-word.tlogo { width: auto; align-self: flex-start; }
/* No zoom (fine-detail photos shimmer when scaled) — calm cross-fade only */
.au-slide img, .au-slide.on img { animation: none !important; transform: none !important; will-change: auto; }
.au-slide { transition: opacity 2.4s ease-in-out; }
.au-orbit i:nth-child(3) { border-style: solid; border-color: rgba(255,255,255,.08); }

/* Smooth photo transition: slow cross-dissolve with a short, gentle settle (no long slow zoom → no shimmer) */
.au-slide { transition: opacity 2.6s cubic-bezier(.4,0,.2,1), visibility 0s linear 2.6s; visibility: hidden; }
.au-slide.on { transition: opacity 2.6s cubic-bezier(.4,0,.2,1), visibility 0s; visibility: visible; z-index: 1; }
.au-slide img { transform: scale(1.06) !important; transition: transform 4.2s cubic-bezier(.16,.84,.3,1) !important; will-change: transform; backface-visibility: hidden; }
.au-slide.on img { transform: scale(1) !important; }
.au-slide { opacity: 0; z-index: 1; transition: opacity .01s linear 2.8s, visibility 0s linear 2.8s; visibility: hidden; }
.au-slide.on { opacity: 1; z-index: 2; visibility: visible; transition: opacity 2.6s cubic-bezier(.4,0,.2,1), visibility 0s; }
.au-otp input { min-width: 0; width: 100%; box-sizing: border-box; padding: 0; }
/* Brand lock-up: Tripsy logo with "by KYVERNITIS" beside it */
.au-brand { flex-direction: row; align-items: center; gap: 18px; }
.au-word.tlogo { height: clamp(42px, 3.8vw, 54px); align-self: center !important; }
.au-by { padding: 4px 0 0 18px; border-left: 1px solid rgba(255,255,255,.28); gap: 9px; align-self: center; }
.au-by span { font-size: 16px; }
.au-by .klogo { height: 20px; }
@media (max-width: 980px) { .au-word.tlogo { height: 38px; } .au-by { padding-left: 12px; } .au-by .klogo { height: 15px; } }
