/* RiversJoy sign-in / sign-up pages — loaded on top of app.css */
.auth2 { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: calc(100vh - 72px); background: var(--mist); }

/* ---- Left: brand panel ------------------------------------------------ */
.auth2-side { position: relative; overflow: hidden; color: #fff; padding: clamp(1.8rem, 3.4vw, 2.8rem); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; background: #020817; }
.auth2-side::before { content: ""; position: absolute; inset: 0; background: url("../img/slide-fleet.svg") center 70% / cover no-repeat; opacity: .55; transform: scale(1.08); animation: authPan 22s ease-in-out infinite alternate; }
.auth2-side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2, 8, 23, .85) 0%, rgba(2, 8, 23, .3) 32%, rgba(2, 8, 23, .9) 58%, rgba(2, 8, 23, .97) 100%); }
.auth2-side > * { position: relative; z-index: 1; }
@keyframes authPan { from { transform: scale(1.08) translateX(-1.5%); } to { transform: scale(1.14) translateX(1.5%); } }
.auth2-kicker { display: inline-flex; align-items: center; gap: .55rem; align-self: flex-start; padding: .45rem .95rem; border-radius: 99px; background: rgba(46, 123, 255, .18); border: 1px solid rgba(143, 187, 255, .35); color: #CFE0FF; font-weight: 600; font-size: .88rem; }
.auth2-kicker i { color: var(--signal); }
.auth2-side h2 { font-family: var(--display); font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.05; letter-spacing: -.03em; max-width: 15ch; margin: 0 0 .8rem; color: #fff; }
.auth2-side p { color: #B8C2D6; max-width: 40ch; margin: 0; }
.auth2-perks { list-style: none; padding: 0; margin: 1.3rem 0 0; display: grid; gap: .6rem; }
@media (max-height: 800px) and (min-width: 901px) { .auth2-ticket { display: none; } .auth2-side { justify-content: flex-end; } }
.auth2-perks li { display: flex; align-items: center; gap: .8rem; color: #E3EAF6; font-weight: 500; }
.auth2-perks i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .15); color: #8FBBFF; flex: none; }

/* Mini ticket that floats on the panel */
.auth2-ticket { align-self: flex-end; display: grid; grid-template-columns: 1fr auto; width: min(340px, 100%); background: #fff; color: var(--ink); border-radius: 16px; overflow: hidden; box-shadow: 0 25px 60px rgba(0, 0, 0, .45); animation: authFloat 6s ease-in-out infinite; }
.auth2-ticket-main { padding: 1rem 1.1rem; }
.auth2-ticket-main small { display: block; color: var(--muted); font-size: .72rem; }
.auth2-ticket-route { font-family: var(--display); font-weight: 700; font-size: 1.15rem; margin: .15rem 0 .5rem; letter-spacing: -.02em; }
.auth2-ticket-route i { color: var(--signal); font-size: .8rem; margin: 0 .3rem; }
.auth2-ticket-meta { display: flex; gap: 1rem; font-size: .8rem; }
.auth2-ticket-meta strong { display: block; font-size: .9rem; }
.auth2-ticket-stub { background: var(--river); color: #fff; padding: 1rem; display: grid; place-items: center; text-align: center; border-left: 2px dashed rgba(255, 255, 255, .6); font-size: .7rem; position: relative; }
.auth2-ticket-stub strong { display: block; font-family: var(--display); font-size: 1.8rem; line-height: 1; }
.auth2-ticket-stub::before, .auth2-ticket-stub::after { content: ""; position: absolute; left: -9px; width: 16px; height: 16px; border-radius: 50%; background: #0B1530; }
.auth2-ticket-stub::before { top: -8px; }
.auth2-ticket-stub::after { bottom: -8px; }
@keyframes authFloat { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(-1deg); } }

/* ---- Right: form card ------------------------------------------------- */
.auth2-main { display: flex; align-items: center; justify-content: center; padding: clamp(2rem, 5vw, 3.5rem) 1.25rem; position: relative; }
.auth2-main::before { content: ""; position: absolute; top: 12%; right: 8%; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(46, 123, 255, .16), transparent); pointer-events: none; }
.auth2-card { position: relative; width: min(440px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.6rem, 4vw, 2.4rem); box-shadow: 0 30px 70px rgba(6, 42, 120, .1); animation: authRise .6s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes authRise { from { opacity: 0; transform: translateY(18px); } }
.auth2-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--sky); color: var(--river); font-size: 1.35rem; margin-bottom: 1.1rem; }
.auth2-card h1 { font-family: var(--display); font-size: 2rem; letter-spacing: -.03em; margin: 0 0 .3rem; }
.auth2-sub { color: var(--muted); margin: 0 0 1.6rem; }

/* Inputs with a leading icon */
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: #97A3B8; pointer-events: none; transition: color .2s; }
.input-icon input { width: 100%; padding-left: 2.8rem; min-height: 54px; border-radius: 12px; background: var(--mist); border-color: transparent; transition: background .2s, border-color .2s, box-shadow .2s; }
.input-icon input:hover { border-color: var(--line); }
.input-icon input:focus { background: #fff; border-color: var(--river); }
.input-icon:focus-within > i { color: var(--river); }
.input-icon .pw-toggle { position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; border-radius: 10px; background: none; color: #7C889C; cursor: pointer; }
.input-icon .pw-toggle:hover { background: var(--sky); color: var(--river); }
.input-icon.has-toggle input { padding-right: 3.2rem; }
.auth2-row { display: flex; justify-content: space-between; align-items: center; margin: -.3rem 0 1.3rem; font-size: .9rem; }
.auth2-row a { font-weight: 600; text-decoration: none; }
.auth2-row a:hover { text-decoration: underline; }
.auth2-card .btn-lg { border-radius: 12px; min-height: 56px; box-shadow: 0 12px 26px rgba(10, 63, 174, .28); }
.auth2-card .btn-lg:hover { transform: translateY(-1px); }
.auth2-card .btn-lg i { transition: transform .2s; }
.auth2-card .btn-lg:hover i { transform: translateX(4px); }

.auth2-divider { display: flex; align-items: center; gap: .8rem; color: #97A3B8; font-size: .82rem; margin: 1.5rem 0; }
.auth2-divider::before, .auth2-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth2-alt { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; border: 1.5px dashed #C9D3E3; border-radius: 14px; text-decoration: none; color: var(--ink); transition: border-color .2s, background .2s; }
.auth2-alt:hover { border-color: var(--river); background: #F6F9FF; }
.auth2-alt > i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--black); color: #fff; flex: none; }
.auth2-alt span { font-size: .85rem; color: var(--muted); }
.auth2-alt strong { display: block; color: var(--ink); font-size: .95rem; }
.auth2-alt .fa-arrow-right { margin-left: auto; color: var(--river); background: none; width: auto; height: auto; }
.auth2-foot { text-align: center; margin: 1.5rem 0 0; color: var(--muted); }
.auth2-foot a { font-weight: 700; text-decoration: none; }
.auth2-secure { display: flex; justify-content: center; gap: .45rem; align-items: center; margin-top: 1.2rem; font-size: .8rem; color: #97A3B8; }

/* Register page extras */
.auth2-side-travel::before { background-image: url("../img/slide-travellers.svg"); background-position: center 80%; }
.auth2-grid { gap: 0 .9rem; }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem; margin-top: .55rem; }
.pw-meter i { height: 5px; border-radius: 5px; background: var(--line); transition: background .25s; }
.pw-meter[data-score="0"] i:nth-child(1) { background: var(--red); }
.pw-meter[data-score="1"] i:nth-child(-n+1) { background: var(--red); }
.pw-meter[data-score="2"] i:nth-child(-n+2) { background: var(--amber); }
.pw-meter[data-score="3"] i:nth-child(-n+3) { background: var(--signal); }
.pw-meter[data-score="4"] i { background: var(--green); }
.pw-note, .pw-match { display: block; margin-top: .35rem; font-size: .8rem; color: var(--muted); }
.pw-match.ok { color: var(--green); }
.pw-match.bad { color: var(--red); }
.pw-match.ok::before { content: "✓ "; }
.auth2-terms { text-align: center; font-size: .82rem; color: var(--muted); margin: .9rem 0 0; }
.auth2-card .alert span { line-height: 1.5; }

@media (max-width: 900px) {
  .auth2 { grid-template-columns: 1fr; min-height: 0; }
  .auth2-side { padding: 2rem 1.25rem 2.2rem; }
  .auth2-side h2 { font-size: 1.7rem; }
  .auth2-perks, .auth2-ticket { display: none; }
  .auth2-main { padding-top: 0; margin-top: -1.2rem; }
}
@media (prefers-reduced-motion: reduce) { .auth2-side::before, .auth2-ticket, .auth2-card { animation: none; } }