/* Login v2 — page-scoped styles */
:root {
  --navy: #0B4A6F;
  --navy-deep: #062B41;
  --navy-mid: #0d5d86;
  --cyan: #06AED4;
  --cyan-accessible: #007A99;
  --cyan-light: #8FE6F7;
  --cyan-soft: #E4F7FC;
  --ink: #12333F;
  --muted: #51697A;
  --line: #DCE7ED;
  --danger: #B3261E;
  --danger-soft: #FDECEA;
  --background: #FFFFFF;
  --background-alt: #F5FAFC;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 74, 111, .08);
}

body:has(.login-v2) > footer.vertical-flex {
  display: none !important;
}

.login-v2-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  padding: 14px 22px;
  border-radius: 0 0 12px 0;
  text-decoration: none;
}
.login-v2-skip:focus {
  left: 0;
}

.login-v2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 110px);
  margin-top: 110px;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.login-v2 img,
.login-v2 svg {
  display: block;
  max-width: 100%;
}
.login-v2 a {
  color: var(--cyan-accessible);
}

/* left brand panel */
.login-v2 .auth-brand {
  position: relative;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 72px 60px;
  background:
    radial-gradient(680px 420px at 82% 6%, rgba(6, 174, 212, .34), transparent 62%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 58%, var(--navy-mid) 100%);
}
.login-v2 .auth-brand .topo {
  position: absolute;
  left: -110px;
  top: 0;
  height: 100%;
  width: 78%;
  color: var(--cyan);
  opacity: .30;
  pointer-events: none;
}
.login-v2 .auth-brand .inner {
  position: relative;
  z-index: 1;
  max-width: 460px;
}
.login-v2 .eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--cyan-light);
  background: rgba(255, 255, 255, .14);
  padding: 7px 16px;
  border-radius: 999px;
  margin: 0 0 20px;
}
.login-v2 .auth-brand h2 {
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -.4px;
  margin: 0 0 16px;
  color: #fff;
}
.login-v2 .auth-brand > .inner > p {
  color: rgba(255, 255, 255, .86);
  margin: 0 0 28px;
  font-size: 17px;
}

/* live Smart QR demo */
.login-v2 .scan-wrap {
  display: flex;
  gap: 26px;
  align-items: center;
  margin: 30px 0 26px;
}
.login-v2 .scan-card {
  position: relative;
  flex: 0 0 auto;
  width: 168px;
  height: 168px;
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 18px 44px rgba(3, 22, 34, .42);
}
.login-v2 .scan-card .qr {
  width: 100%;
  height: 100%;
}
.login-v2 .scan-card::before,
.login-v2 .scan-card::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border: 3px solid var(--cyan-light);
  border-radius: 4px;
}
.login-v2 .scan-card::before {
  top: -7px;
  left: -7px;
  border-right: 0;
  border-bottom: 0;
}
.login-v2 .scan-card::after {
  bottom: -7px;
  right: -7px;
  border-left: 0;
  border-top: 0;
}
.login-v2 .scan-card .brk {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 3px solid var(--cyan-light);
  border-radius: 4px;
}
.login-v2 .scan-card .brk.tr {
  top: -7px;
  right: -7px;
  border-left: 0;
  border-bottom: 0;
}
.login-v2 .scan-card .brk.bl {
  bottom: -7px;
  left: -7px;
  border-right: 0;
  border-top: 0;
}
.login-v2 .scan-card .beam {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--cyan-light), transparent);
  box-shadow: 0 0 16px 3px rgba(143, 230, 247, .65);
  animation: loginV2Sweep 3.4s cubic-bezier(.45, 0, .55, 1) infinite;
}
@keyframes loginV2Sweep {
  0% { top: 14px; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { top: calc(100% - 17px); opacity: 0; }
}

.login-v2 .scan-copy {
  min-width: 0;
}
.login-v2 .scan-lead {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan-light);
  margin: 0 0 8px;
}
.login-v2 .rotator {
  position: relative;
  height: 3.9em;
  overflow: hidden;
}
.login-v2 .rotator span {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: block;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.login-v2 .rotator span.on {
  opacity: 1;
  transform: none;
}
.login-v2 .scan-invite {
  margin: 12px 0 0;
  font-size: 14.5px;
  color: rgba(255, 255, 255, .72);
}

.login-v2 .facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.login-v2 .facts div {
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 12px;
  padding: 11px 15px;
  min-width: 0;
}
.login-v2 .facts b {
  display: block;
  font-size: 18px;
  font-weight: 900;
  color: var(--cyan-light);
  line-height: 1.1;
}
.login-v2 .facts span {
  font-size: 12.5px;
  color: rgba(255, 255, 255, .75);
}

.login-v2 .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* right form panel */
.login-v2 .auth-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 32px;
  background: #fff;
}
.login-v2 .form-card {
  width: 100%;
  max-width: 420px;
}
.login-v2 .form-card h1 {
  font-size: 27px;
  font-weight: 900;
  color: var(--navy);
  margin: 0 0 6px;
  letter-spacing: -.3px;
}
.login-v2 .form-card .sub {
  color: var(--muted);
  font-size: 15.5px;
  margin: 0 0 26px;
}

.login-v2 .social {
  display: grid;
  gap: 10px;
}
.login-v2 .social a,
.login-v2 .social button {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  background: #fff;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .15s ease;
}
.login-v2 .social a:hover,
.login-v2 .social button:hover {
  border-color: var(--cyan-accessible);
  background: var(--background-alt);
  transform: translateY(-1px);
  color: var(--ink);
  text-decoration: none;
}
.login-v2 .social a:focus-visible,
.login-v2 .social button:focus-visible {
  outline: 3px solid var(--cyan-accessible);
  outline-offset: 2px;
}
.login-v2 .social svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.login-v2 .divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 13.5px;
}
.login-v2 .divider::before,
.login-v2 .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.login-v2 .field {
  margin-bottom: 18px;
}
.login-v2 .field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 7px;
}
.login-v2 .control {
  position: relative;
  display: flex;
  align-items: center;
}
.login-v2 .control .ico {
  position: absolute;
  left: 16px;
  color: var(--muted);
  pointer-events: none;
  display: flex;
  z-index: 1;
}
.login-v2 .control input {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  padding: 14px 16px 14px 46px;
  min-height: 52px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.login-v2 .control input::placeholder {
  color: #9AAFBC;
}
.login-v2 .control input:hover {
  border-color: #C3D5DF;
}
.login-v2 .control input:focus {
  outline: none;
  border-color: var(--cyan-accessible);
  box-shadow: 0 0 0 3px rgba(0, 122, 153, .15);
}
.login-v2 .control .peek {
  position: absolute;
  right: 8px;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--muted);
  padding: 9px;
  border-radius: 8px;
  display: flex;
  line-height: 0;
}
.login-v2 .control .peek:hover {
  color: var(--cyan-accessible);
}
.login-v2 .control .peek:focus-visible {
  outline: 3px solid var(--cyan-accessible);
  outline-offset: 1px;
}

.login-v2 .err {
  display: none;
  align-items: flex-start;
  gap: 7px;
  margin-top: 7px;
  font-size: 13.5px;
  color: var(--danger);
  font-weight: 700;
}
.login-v2 .err svg {
  flex: 0 0 auto;
  margin-top: 2px;
}
.login-v2 .field.invalid .err {
  display: flex;
}
.login-v2 .field.invalid .control input {
  border-color: var(--danger);
  background: var(--danger-soft);
}
.login-v2 .field.invalid .control input:focus {
  box-shadow: 0 0 0 3px rgba(179, 38, 30, .14);
}

.login-v2 .form-alert {
  display: none;
  gap: 10px;
  align-items: flex-start;
  background: var(--danger-soft);
  border: 1px solid #F3C7C3;
  border-left: 4px solid var(--danger);
  border-radius: 12px;
  padding: 13px 15px;
  margin-bottom: 20px;
  font-size: 14.5px;
  color: #7A1C16;
}
.login-v2 .form-alert.show {
  display: flex;
}
.login-v2 .form-alert svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--danger);
}

.login-v2 .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 22px;
  flex-wrap: wrap;
}
.login-v2 .check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  color: var(--ink);
  cursor: pointer;
  margin: 0;
  font-weight: 400;
}
.login-v2 .check input {
  width: 18px;
  height: 18px;
  accent-color: var(--cyan-accessible);
  cursor: pointer;
  margin: 0;
}
.login-v2 .row a {
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
}
.login-v2 .row a:hover {
  text-decoration: underline;
}

.login-v2 .btn-submit {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  border-radius: 999px;
  background: var(--cyan-accessible);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
  text-align: center;
}
.login-v2 .btn-submit:hover {
  background: #00647F;
  transform: translateY(-2px);
  color: #fff;
}
.login-v2 .btn-submit:focus-visible {
  outline: 3px solid var(--cyan-accessible);
  outline-offset: 3px;
}
.login-v2 .btn-submit[aria-busy="true"] {
  opacity: .7;
  pointer-events: none;
}

.login-v2 .signup {
  text-align: center;
  margin: 22px 0 0;
  font-size: 15px;
  color: var(--muted);
}
.login-v2 .signup a {
  font-weight: 700;
  text-decoration: none;
}
.login-v2 .signup a:hover {
  text-decoration: underline;
}

.login-v2-foot {
  border-top: 1px solid var(--line);
  background: var(--background-alt);
  padding: 20px 24px;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
  font-family: 'Lato', Arial, Helvetica, sans-serif;
}
.login-v2-foot a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 9px;
  white-space: nowrap;
}
.login-v2-foot a:hover {
  color: var(--cyan-accessible);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .login-v2 {
    grid-template-columns: 1fr;
    min-height: 0;
    margin-top: 90px;
  }
  .login-v2 .auth-brand {
    order: 2;
    padding: 52px 28px;
  }
  .login-v2 .scan-wrap {
    gap: 20px;
    align-items: flex-start;
  }
  .login-v2 .scan-card {
    width: 132px;
    height: 132px;
    padding: 12px;
  }
  .login-v2 .rotator {
    height: 4.2em;
  }
  .login-v2 .rotator span {
    font-size: 17px;
    line-height: 1.3;
  }
  .login-v2 .auth-brand .topo {
    width: 130%;
    left: -40px;
    opacity: .22;
  }
  .login-v2 .auth-form {
    order: 1;
    padding: 44px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-v2 *,
  .login-v2 *::before,
  .login-v2 *::after {
    transition: none !important;
    animation: none !important;
  }
  .login-v2 .scan-card .beam {
    display: none;
  }
  .login-v2 .rotator {
    height: auto;
  }
  .login-v2 .rotator span {
    position: static;
    opacity: 1;
    transform: none;
    display: block;
    font-size: 17px;
    margin-bottom: 6px;
  }
}

.login-v2 a:focus-visible,
.login-v2 button:focus-visible {
  outline: 3px solid var(--cyan-accessible);
  outline-offset: 3px;
  border-radius: 8px;
}
.login-v2 .auth-brand a:focus-visible {
  outline-color: var(--cyan-light);
}
