/* Presentation only; scoped to the existing login page. */
.auth-page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 24px 28px;
  background: radial-gradient(ellipse at 10% 0%, #e3effb 0, transparent 48%), #f1f5fa;
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.auth-page .auth-card {
  width: min(100%, 1040px);
  display: grid;
  grid-template-columns: .94fr 1.06fr;
  padding: 0;
  border: 1px solid #dce5ef;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 64px -24px #19385838, 0 4px 12px #19385808;
  overflow: hidden;
}
.login-brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 64px;
  padding: 42px;
  color: #fff;
  background: radial-gradient(ellipse at 100% 100%, #164875 0, transparent 65%), linear-gradient(145deg, #081c32, #0d2c4c);
}
.login-brand-lockup { display: flex; align-items: center; gap: 12px; }
.auth-page .auth-logo { width: 64px; height: 64px; object-fit: contain; margin: 0; }
.login-wordmark { font-size: 27px; font-weight: 650; letter-spacing: -.8px; }
.login-wordmark > span { color: #65caff; }
.login-eyebrow { display: block; font-size: 11px; font-weight: 700; letter-spacing: .15em; line-height: 1.6; }
.login-brand .login-eyebrow { color: #85cdf7; margin-bottom: 20px; }
.login-brand h2 { font-size: clamp(27px, 3vw, 36px); font-weight: 600; letter-spacing: -1px; line-height: 1.25; margin: 0 0 20px; }
.auth-page .login-brand p { max-width: 310px; color: #bbcee2; font-size: 15px; line-height: 1.8; margin: 0; }
.login-brand-footer { display: flex; align-items: center; gap: 9px; color: #aac4de; font-size: 11px; line-height: 1.6; }
.login-brand-footer > span { width: 6px; height: 6px; border-radius: 50%; background: #69c8f9; flex-shrink: 0; }
.login-access { min-width: 0; padding: 58px 48px 36px; }
.login-heading .login-eyebrow { color: #386487; margin-bottom: 12px; }
.auth-page .auth-card h1 { color: #102940; font-size: clamp(25px, 2.7vw, 30px); letter-spacing: -.9px; font-weight: 650; line-height: 1.25; margin: 0 0 12px; }
.auth-page .login-heading p { color: #607184; font-size: 14px; line-height: 1.7; margin: 0 0 32px; }
.auth-page .field { gap: 9px; margin-bottom: 22px; }
.auth-page .field label { color: #2e4256; font-weight: 600; font-size: 13px; }
.auth-page .field input { width: 100%; min-width: 0; min-height: 52px; padding: 13px 15px; border: 1px solid #cbd7e3; border-radius: 10px; background: #fbfcfe; color: #102940; font-size: 16px; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.auth-page .field input::placeholder { color: #78889a; }
.auth-page .field input:hover { border-color: #96adc3; }
.auth-page .field input:focus { border-color: #1674d5; background: #fff; box-shadow: 0 0 0 4px #0969da1a; outline: 2px solid transparent; }
.auth-page .btn.primary { min-height: 52px; border: 1px solid #0863c8; border-radius: 10px; background: linear-gradient(180deg, #1475df, #0966cf); box-shadow: 0 5px 12px #0969da20; font-size: 15px; font-weight: 600; transition: background .18s ease, box-shadow .18s ease; }
.auth-page .btn.primary:hover:not(:disabled) { background: #075cbd; box-shadow: 0 6px 16px #0969da30; }
.auth-page .btn.primary:focus-visible { outline: 3px solid #0969da; outline-offset: 4px; }
.auth-page .btn.primary:active:not(:disabled) { background: #084f9f; box-shadow: none; }
.auth-page .btn.primary:disabled { opacity: .65; cursor: wait; box-shadow: none; }
.auth-page .auth-message { min-height: 22px; margin-top: 12px; font-size: 13px; line-height: 1.6; color: #a12525; overflow-wrap: anywhere; }
.login-access-note { display: flex; align-items: flex-start; gap: 10px; border-top: 1px solid #e7edf4; padding-top: 22px; margin-top: 10px; }
.login-access-note svg { width: 19px; height: 22px; flex-shrink: 0; color: #52718e; }
.auth-page .login-access-note p { margin: 0; font-size: 12px; line-height: 1.7; color: #66788b; }
.login-page-footer { margin-top: 24px; color: #66788b; font-size: 12px; text-align: center; line-height: 1.7; }
.login-page-footer span { padding: 0 8px; }
/* Ambient layers never intercept clicks or enter the accessibility tree. */
.auth-page {
  position: relative;
  isolation: isolate;
  background: radial-gradient(ellipse at 5% 10%, #deebfa, transparent 55%),
    radial-gradient(ellipse at 95% 90%, #e0edf9, transparent 50%), #f4f7fb;
}
.auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 24% 30%, #69baff26, transparent 48%),
    radial-gradient(ellipse at 80% 70%, #90d9f71c, transparent 42%);
  animation: login-ambient 18s ease-in-out infinite alternate;
}
.auth-page .auth-card {
  position: relative;
  border-color: #fff;
  box-shadow: 0 32px 80px -28px #183d6345, 0 8px 24px -12px #183d6320,
    0 0 0 1px #d6e3ef80;
  animation: login-panel-in .65s cubic-bezier(.2,.65,.3,1) both;
  transition: box-shadow .35s ease;
}
.auth-page .auth-card:focus-within {
  box-shadow: 0 34px 88px -28px #183d6352, 0 8px 28px -12px #0969da24,
    0 0 0 1px #b9d5ef;
}
.login-brand {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(145deg, #071a30 0%, #10365a 70%, #124970 100%);
  border-right: 1px solid #77c8ff26;
}
.login-brand::before, .login-brand::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.login-brand::before {
  inset: -12%;
  background: radial-gradient(ellipse at 85% 20%, #249de843, transparent 48%),
    radial-gradient(ellipse at 10% 85%, #137bea30, transparent 48%);
  animation: login-brand-light 16s ease-in-out infinite alternate;
}
.login-brand::after {
  inset: 0;
  opacity: .5;
  background-image: linear-gradient(#91d6ff0d 1px, transparent 1px),
    linear-gradient(90deg, #91d6ff0d 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(145deg, transparent 20%, #000 100%);
}
.login-brand-lockup { animation: login-content-in .65s .06s both; }
.auth-page .auth-logo { filter: drop-shadow(0 3px 12px #0aabff26); }
.login-brand-copy { position: relative; animation: login-content-in .65s .12s both; }
/* A quiet connection path behind the copy, rather than an additional illustration. */
.login-brand-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 350px;
  height: 350px;
  top: -95px;
  right: -225px;
  border: 1px solid #70cfff20;
  border-radius: 50%;
  box-shadow: 0 0 0 44px #70cfff07, 0 0 0 88px #70cfff05;
  pointer-events: none;
  animation: login-connection 14s ease-in-out infinite;
  transform-origin: center;
}
.login-brand .login-eyebrow { display: flex; align-items: center; gap: 12px; }
.login-brand .login-eyebrow::before { content: ""; width: 24px; height: 1px; background: #72d1ff; }
.login-brand-footer { color: #bfd3e6; }
.login-brand-footer > span { box-shadow: 0 0 0 4px #69c8f910, 0 0 12px #69c8f92b; }
.login-access { background: linear-gradient(145deg, #fff 55%, #f8fbff); }
.login-heading .login-eyebrow { color: #396b98; }
.login-heading { animation: login-content-in .55s .1s both; }
.auth-page form { animation: login-content-in .55s .18s both; }
.login-access-note { animation: login-content-in .55s .24s both; }
.auth-page .field input {
  border-color: #ccd9e6;
  background: #f8fafd;
  box-shadow: inset 0 1px 2px #10294004;
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.auth-page .field label { transition: color .25s ease; }
.auth-page .field:focus-within label { color: #0966bd; }
.auth-page .field input:focus {
  border-color: #2585de;
  background: #fff;
  box-shadow: 0 0 0 4px #1674d512, 0 4px 16px #1674d50a;
}
.auth-page .btn.primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(110deg, #0961c5, #167cde 65%, #0969ce);
  background-size: 180% 100%;
  box-shadow: 0 6px 16px -5px #0969da55, inset 0 1px 0 #ffffff26;
  transition: background-position .45s ease, transform .25s ease, box-shadow .25s ease;
}
.auth-page .btn.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 25%, #ffffff12 50%, transparent 75%);
  transform: translateX(-100%);
  transition: transform .6s ease;
}
@media (hover: hover) and (pointer: fine) {
  .auth-page .btn.primary:hover:not(:disabled) {
    background: linear-gradient(110deg, #0961c5, #167cde 65%, #0969ce);
    background-size: 180% 100%;
    background-position: 100% 50%;
    transform: translateY(-1px);
    box-shadow: 0 9px 22px -6px #0969da66, inset 0 1px 0 #ffffff30;
  }
  .auth-page .btn.primary:hover:not(:disabled)::after { transform: translateX(100%); }
}
.auth-page .btn.primary:active:not(:disabled) { transform: translateY(0); box-shadow: 0 2px 6px #0969da26; }
.auth-page .btn.primary:disabled { transform: none; }
@keyframes login-panel-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes login-content-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes login-ambient { from { opacity: .4; } to { opacity: 1; } }
@keyframes login-brand-light {
  from { transform: translate(-3%, 2%); opacity: .65; }
  to { transform: translate(3%, -2%); opacity: 1; }
}
@keyframes login-connection {
  0%, 100% { transform: translate3d(0, -12px, 0) scale(.97); opacity: .65; }
  35% { transform: translate3d(-26px, 10px, 0) scale(1.03); opacity: .95; }
  70% { transform: translate3d(-10px, 28px, 0) scale(1); opacity: .8; }
}
@media (max-width: 800px) {
  .login-brand { padding: 32px; }
  .login-access { padding: 42px 30px 30px; }
  .login-brand h2 { font-size: 29px; }
}
@media (max-width: 640px) {
  .auth-page { padding: 24px 16px; }
  .auth-page .auth-card { max-width: 440px; grid-template-columns: 1fr; border-radius: 20px; }
  .login-brand { padding: 22px 28px; gap: 0; border-right: 0; border-bottom: 1px solid #77c8ff26; }
  .auth-page::before, .login-brand::before { animation: none; }
  .login-brand::after { opacity: .25; }
  .auth-page .auth-logo { width: 48px; height: 48px; }
  .login-wordmark { font-size: 25px; }
  .login-brand-copy, .login-brand-footer { display: none; }
  .login-access { padding: 32px 28px 26px; }
  .auth-page .auth-card h1 { font-size: 26px; }
  .login-page-footer { font-size: 11px; margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-page, .auth-page *, .auth-page::before, .auth-page::after,
  .auth-page *::before, .auth-page *::after {
    animation: none !important;
    transition: none !important;
  }
  .auth-page .btn.primary:hover:not(:disabled),
  .auth-page .btn.primary::after { transform: none; }
  .auth-page .btn.primary::after { display: none; }
}






/* Decorative construction scene, preserving the existing two-panel login. */
.auth-page .auth-card,
.login-brand-lockup, .login-brand-copy, .login-heading,
.auth-page form, .login-access-note { animation:none; }
.login-brand-copy::before, .login-brand-copy::after { content:none; animation:none; }
.login-brand { background:linear-gradient(150deg,#071a30,#0c2a48 65%,#104466); }
.login-brand-lockup, .login-brand-copy, .login-brand-footer { position:relative; z-index:1; }
.login-brand::before {
  inset:0; opacity:.7; animation:none;
  background:linear-gradient(#77caff07 1px,transparent 1px),
    linear-gradient(90deg,#77caff07 1px,transparent 1px);
  background-size:40px 40px;
  mask-image:linear-gradient(90deg,transparent,#000);
}
.login-brand::after {
  inset:0; opacity:.7; animation:none;
  background:url("../img/brand/login-construction.svg") right bottom / cover no-repeat;
  mask-image:linear-gradient(90deg,transparent 15%,#000 85%);
}
@media(max-width:640px) {
  .login-brand::after { background-size:auto 320px; opacity:.35; }
}
