/* Login and change-password pages: animated scenery, interactive card.
   Desktop: the scenery fills the whole screen; tour text on the left, login card floating on the right.
   Phone: compact banner on top and the card right below it (inputs visible without scrolling). */

body.auth2 { margin: 0; min-height: 100vh; background: var(--bg); }
.auth-wrap { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }

/* ------------------------------------------------------------ scenery panel */
.auth-hero { position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background: linear-gradient(180deg, #0B3B5C 0%, #0F6B6E 42%, #F59E5B 86%, #FDBA74 100%); padding: 16px 18px 78px; }
.auth-hero.has-banner { background-size: cover; background-position: center; }
.auth-hero.has-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 47, 73, .72), rgba(8, 47, 73, .35)); z-index: -1; }
.auth-hero .content { position: relative; z-index: 3; max-width: 560px; }
.brandrow2 { display: flex; align-items: center; gap: 12px; }
.brandrow2 .brand-logo { height: 58px; width: auto; padding: 5px 8px; border-radius: 14px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.brandrow2 b { display: block; font: 700 .95rem var(--font-head); letter-spacing: .02em; line-height: 1.2; }
.brandrow2 span { font-size: .78rem; opacity: .9; }
.auth-hero h1 { font-size: 1.55rem; line-height: 1.1; margin: 14px 0 6px; letter-spacing: -.02em; text-shadow: 0 2px 14px rgba(0, 0, 0, .25); }
.auth-hero p.sub { margin: 0 0 10px; opacity: .92; font-size: .95rem; }
.chips2 { display: flex; flex-wrap: wrap; gap: 8px; }
.glass { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.glass .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); animation: ping 1.8s infinite; }
.glass.closed .dot { background: #FCA5A5; animation: none; }
.countdown2 { display: none; margin-top: 18px; }
.countdown2 .num { font: 800 3.4rem/1 var(--font-head); letter-spacing: -.03em; text-shadow: 0 4px 24px rgba(0, 0, 0, .3); }
.countdown2 .lbl { display: block; font-size: .95rem; opacity: .92; }
/* live timer (.cdt-box): styles shared with the employee home are in base.css. Here: only where it shows. */
.countdown2.timer { display: none; }
@media (min-width: 900px) and (max-height: 700px) { .cdt-box.cdt-glass { padding: 10px 12px 9px; } .cdt-glass .cdt .u { min-width: 64px; padding: 8px 6px 10px; } .cdt-glass .cdt .u b { font-size: 2rem; } .cdt-glass .cdt-head { margin-bottom: 7px; } .cdt-glass .cdt-foot { margin-top: 7px; } }

/* animated layers (all decorative) */
.scene2 { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.scene2 > * { position: absolute; will-change: transform; }
.sun2 { width: 120px; height: 120px; right: 12%; bottom: 46px; border-radius: 50%;
  background: radial-gradient(circle, #FFF7D6 0%, #FDE68A 38%, #FBBF24 62%, rgba(251, 146, 60, 0) 72%); animation: glow 5s ease-in-out infinite; }
.cloud2 { width: 120px; height: 36px; border-radius: 40px; background: rgba(255, 255, 255, .75); filter: blur(.3px); animation: drift linear infinite; }
.cloud2::before, .cloud2::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.cloud2::before { width: 54px; height: 54px; left: 18px; top: -26px; } .cloud2::after { width: 40px; height: 40px; left: 62px; top: -16px; }
.cloud2.c1 { top: 70px; left: -140px; animation-duration: 70s; opacity: .85; }
.cloud2.c2 { top: 130px; left: -220px; animation-duration: 95s; animation-delay: -30s; transform: scale(.7); opacity: .6; }
.cloud2.c3 { top: 36px; left: -180px; animation-duration: 120s; animation-delay: -60s; transform: scale(.5); opacity: .5; }
.sea2 { left: 0; right: 0; bottom: 0; height: 70px; overflow: hidden; }
.sea2 svg { position: absolute; bottom: 0; left: 0; width: 200%; height: 100%; animation: wave 12s linear infinite; }
.sea2 svg.w2 { animation-duration: 18s; animation-direction: reverse; opacity: .8; bottom: -8px; }
.boat2 { width: 54px; right: 34%; bottom: 40px; animation: bob 4s ease-in-out infinite; transform-origin: 50% 90%; }
.birds2 { top: 58px; right: 24%; width: 60px; animation: fly 14s ease-in-out infinite; opacity: .8; }
.birds2.b2 { top: 110px; right: 58%; width: 44px; opacity: .55; animation-duration: 19s; animation-delay: -6s; }

/* stars: two layers twinkling out of step, fading towards the horizon */
.stars2 { inset: 0 0 50% 0; opacity: .9; animation: twinkle 4.5s ease-in-out infinite alternate;
  -webkit-mask-image: linear-gradient(#000 30%, transparent); mask-image: linear-gradient(#000 30%, transparent);
  background-image: radial-gradient(1.6px 1.6px at 6% 18%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 14% 42%, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 23% 10%, #FFF7D6 50%, transparent 52%), radial-gradient(1.2px 1.2px at 31% 30%, #fff 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 42% 8%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 51% 26%, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 63% 14%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 72% 36%, #FFF7D6 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 81% 6%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 89% 24%, #fff 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 96% 44%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 37% 52%, #fff 50%, transparent 52%); }
.stars2.s2 { animation-duration: 6s; animation-delay: -3s;
  background-image: radial-gradient(1.2px 1.2px at 3% 34%, #fff 50%, transparent 52%), radial-gradient(1.6px 1.6px at 18% 4%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 27% 48%, #fff 50%, transparent 52%), radial-gradient(1.6px 1.6px at 46% 38%, #FFF7D6 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 57% 6%, #fff 50%, transparent 52%), radial-gradient(1.6px 1.6px at 68% 46%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 77% 18%, #fff 50%, transparent 52%), radial-gradient(1.6px 1.6px at 93% 12%, #fff 50%, transparent 52%); }

/* shooting star: a short streak now and then */
.shoot2 { top: 12%; left: 62%; width: 130px; height: 2px; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff); transform: rotate(-24deg); animation: shoot 11s ease-in 3s infinite; }

/* island on the horizon */
.isle2 { width: 170px; left: 8%; bottom: 44px; opacity: .9; }

/* sun glint on the water: shimmering bands under the sun */
.sea2 svg { z-index: 0; } .sea2 svg.w3 { z-index: 2; animation-duration: 8s; height: 70%; }
.glint2 { position: absolute; z-index: 1; right: 12%; width: 120px; top: 18px; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.glint2 i { display: block; height: 3px; border-radius: 3px; background: rgba(255, 241, 196, .85); box-shadow: 0 0 8px rgba(253, 230, 138, .9); animation: glint 2.4s ease-in-out infinite; }
.glint2 i:nth-child(1) { width: 70%; } .glint2 i:nth-child(2) { width: 52%; animation-delay: -.5s; } .glint2 i:nth-child(3) { width: 80%; animation-delay: -1s; }
.glint2 i:nth-child(4) { width: 44%; animation-delay: -1.5s; } .glint2 i:nth-child(5) { width: 60%; animation-delay: -2s; }

/* ------------------------------------------------------------ login card */
.auth-panel { flex: 1; display: flex; justify-content: center; align-items: flex-start; padding: 0 16px 28px; margin-top: -54px; position: relative; z-index: 4; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border-radius: 22px; padding: 22px 20px 20px; box-shadow: 0 18px 50px rgba(8, 47, 73, .22), 0 2px 6px rgba(8, 47, 73, .08); border: 1px solid rgba(255, 255, 255, .6); animation: rise .6s cubic-bezier(.2, .8, .2, 1) both; }
.auth-card h2 { margin: 0 0 2px; font-size: 1.35rem; }
.auth-card .greet { font-size: .85rem; font-weight: 600; color: var(--accent); margin: 0 0 2px; min-height: 1.2em; }
.auth-card .lead { margin: 0 0 14px; color: var(--muted); font-size: .95rem; }
.ifield { position: relative; }
.ifield > .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; transition: color var(--speed); }
.ifield input { padding-left: 44px; height: 50px; border-radius: 12px; border-width: 2px; transition: border-color var(--speed), box-shadow var(--speed), background var(--speed); background: #F8FAFC; }
.ifield input:focus { background: #fff; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(15, 118, 110, .15); }
.ifield:focus-within > .ico { color: var(--primary); }
.ifield.pw input { padding-right: 70px; }
.field.invalid .ifield input { border-color: var(--danger); animation: shake .35s; }
.auth-card .banner { margin-bottom: 14px; align-items: flex-start; }
.auth-card .banner[role="alert"] { animation: shake .4s; display: block; position: relative; padding-left: 40px; }
.auth-card .banner[role="alert"]::before { content: "!"; position: absolute; left: 12px; top: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--danger-fg); color: var(--danger-bg); font-weight: 800; font-size: .8rem; text-align: center; line-height: 20px; }
.row-opts { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: -4px 0 14px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; cursor: pointer; min-height: 44px; }
.check input { width: 20px; height: 20px; min-height: 0; accent-color: var(--primary); }
.caps { display: none; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--warn-fg); background: var(--warn-bg); border-radius: 8px; padding: 4px 10px; margin: -6px 0 12px; }
.caps.on { display: inline-flex; animation: pop 160ms ease; }
.btn.go { width: 100%; min-height: 52px; font-size: 1.05rem; position: relative; overflow: hidden; box-shadow: 0 8px 20px rgba(249, 115, 22, .35); }
.btn.go .arrow { transition: transform var(--speed); } .btn.go:hover .arrow { transform: translateX(5px); }
.btn.go .spin { display: none; width: 18px; height: 18px; border: 3px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.go.loading { pointer-events: none; opacity: .9; } .btn.go.loading .spin { display: inline-block; } .btn.go.loading .arrow { display: none; }
.help { text-align: center; margin: 14px 0 0; font-size: .85rem; color: var(--muted); }
.stepdots { display: flex; gap: 6px; justify-content: center; margin: 0 0 10px; } .stepdots i { width: 8px; height: 8px; border-radius: 50%; background: var(--border); } .stepdots i.on { background: var(--accent); width: 22px; border-radius: 6px; }
.meter { height: 6px; border-radius: 6px; background: var(--track); overflow: hidden; margin: -8px 0 12px; } .meter i { display: block; height: 100%; width: 0; background: var(--danger); transition: width var(--speed), background var(--speed); }

@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-6px); } 40%, 60% { transform: translateX(6px); } }
@keyframes drift { to { transform: translateX(calc(100vw + 400px)); } }
@keyframes wave { to { transform: translateX(-50%); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-5px) rotate(3deg); } }
@keyframes glow { 0%, 100% { transform: scale(1); filter: brightness(1); } 50% { transform: scale(1.08); filter: brightness(1.12); } }
@keyframes fly { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-40px, 8px); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); } 70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes twinkle { from { opacity: .35; } to { opacity: 1; } }
@keyframes shoot { 0% { opacity: 0; transform: rotate(-24deg) translateX(0); } 3% { opacity: 1; } 10% { opacity: 0; transform: rotate(-24deg) translateX(-320px); } 100% { opacity: 0; transform: rotate(-24deg) translateX(-320px); } }
@keyframes glint { 0%, 100% { opacity: .25; transform: scaleX(.6); } 50% { opacity: 1; transform: scaleX(1); } }

/* ------------------------------------------------------------ small phones: keep everything above the fold */
@media (max-width: 599px) { .auth-hero { padding-bottom: 66px; } .sun2 { width: 84px; height: 84px; right: 8%; bottom: 40px; } .boat2, .birds2, .isle2, .shoot2 { display: none; } .auth-hero .sub { display: none; }
  .glint2 { right: 8%; width: 84px; top: 22px; gap: 5px; } }
@media (max-height: 640px) and (max-width: 899px) { .auth-hero h1 { font-size: 1.3rem; margin-top: 8px; } .auth-hero .glass:nth-child(2) { display: none; } }

/* phones / small tablets: "Journey starts in" countdown, compact and full width so the login card stays near the top */
@media (max-width: 899px) {
  .countdown2, .countdown2.timer { display: block; margin-top: 12px; }
  .countdown2 .num { font-size: 2.2rem; display: inline-block; margin-right: 8px; vertical-align: middle; } .countdown2 .lbl { display: inline; vertical-align: middle; }
  .countdown2 .cdt-box.cdt-glass { width: 100%; max-width: 420px; padding: 9px 10px 8px; border-radius: 18px; }
  .cdt-glass .cdt-head { margin: 0 2px 7px; font-size: .66rem; letter-spacing: .14em; }
  .cdt-glass .cdt { gap: 6px; }
  .cdt-glass .cdt .u { flex: 1; min-width: 0; padding: 7px 4px 9px; border-radius: 12px; }
  .cdt-glass .cdt .u b { font-size: 1.6rem; }
  .cdt-glass .cdt .u small { margin-top: 3px; font-size: .55rem; letter-spacing: .1em; }
  .cdt-glass .cdt-foot { margin: 7px 2px 0; font-size: .76rem; gap: 4px 12px; }
}
@media (max-width: 899px) and (max-height: 700px) { .cdt-glass .cdt-foot { display: none; } .countdown2 { margin-top: 10px; } }

/* ------------------------------------------------------------ tablet / laptop: full-width scenery, card floating on the right */
@media (min-width: 900px) {
  .auth-wrap { flex-direction: row; position: relative; }
  /* the scenery fills the whole screen behind everything; its text keeps clear of the card on the right */
  .auth-hero { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 48px calc(min(440px, 40vw) + 9vw) 150px 6vw; }
  .sun2 { right: auto; left: 46%; } .boat2 { right: auto; left: 36%; } .birds2 { right: auto; left: 52%; } .birds2.b2 { left: 30%; }
  .glint2 { right: auto; left: calc(46% + 35px); top: 26px; } .isle2 { width: 230px; left: 4%; bottom: 76px; }
  .auth-hero h1 { font-size: 3rem; margin-top: 36px; }
  .auth-hero p.sub { font-size: 1.15rem; }
  .brandrow2 .brand-logo { height: 76px; padding: 6px 10px; border-radius: 18px; } .brandrow2 b { font-size: 1.1rem; }
  .countdown2, .countdown2.timer { display: block; }
  .sea2 { height: 120px; } .sun2 { width: 190px; height: 190px; bottom: 74px; } .boat2 { width: 80px; bottom: 70px; }
  .auth-panel { flex: 1; justify-content: flex-end; align-items: center; margin-top: 0; padding: 32px 6vw; background: none; }
  .auth-card { width: min(440px, 40vw); padding: 30px 30px 24px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 30px 70px rgba(8, 47, 73, .35), 0 2px 8px rgba(8, 47, 73, .12); }
  .auth-card h2 { font-size: 1.6rem; }
}
@media (min-width: 900px) and (max-height: 700px) { .auth-hero { padding-top: 24px; padding-bottom: 130px; } .auth-hero h1 { font-size: 2.3rem; margin-top: 16px; } .countdown2 { margin-top: 10px; } .countdown2 .num { font-size: 2.6rem; } }

@media (prefers-reduced-motion: reduce) { .cloud2, .sun2, .boat2, .birds2, .sea2 svg, .glass .dot, .auth-card, .caps.on, .stars2, .glint2 i { animation: none !important; } .shoot2 { display: none; } .cloud2.c1 { left: 62%; top: 24px; } .cloud2.c2 { left: 70%; top: 150px; } .cloud2.c3 { left: 48%; top: 14px; } }

.ifield.pw button { height: 50px; right: 4px; }
.ifield.pw { position: relative; }
