:root {
  --navy-950: #050f22;
  --navy-900: #07162e;
  --navy-850: #0a2140;
  --blue-600: #175be8;
  --blue-500: #2480ed;
  --teal-500: #11c6bb;
  --green-500: #51ae2b;
  --ink-900: #0c1d3a;
  --ink-700: #34445f;
  --ink-500: #68758b;
  --line: #dbe2ec;
  --surface: #ffffff;
  --danger: #c93434;
  --danger-bg: #fff2f2;
  --success: #1f7a46;
  --success-bg: #edf9f2;
  --shadow: 0 28px 80px rgba(0, 8, 25, 0.38);
  --radius-xl: 24px;
  --radius-lg: 14px;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--navy-950);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  font-family: var(--font);
  color: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.login-page {
  position: relative;
  display: grid;
  grid-template-rows: 1fr;
  min-height: 100svh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 84% 7%, rgba(21, 151, 196, 0.18), transparent 30%),
    radial-gradient(circle at 17% 80%, rgba(31, 73, 169, 0.2), transparent 34%),
    linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 42%, #0a2b4b 100%);
}

.page-glow {
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(90px);
  opacity: 0.24;
}

.page-glow-one {
  top: -180px;
  right: -140px;
  width: 520px;
  height: 520px;
  background: #1a9dbb;
}

.page-glow-two {
  bottom: -260px;
  left: -180px;
  width: 620px;
  height: 620px;
  background: #173fb2;
}

.wave-lines {
  position: fixed;
  inset: auto 0 3% 0;
  width: 100%;
  height: 63vh;
  min-height: 480px;
  pointer-events: none;
  opacity: 0.76;
}

.dot-pattern {
  position: fixed;
  width: 112px;
  height: 112px;
  pointer-events: none;
  opacity: 0.18;
  background-image: radial-gradient(circle, #7aa4d4 1.45px, transparent 1.6px);
  background-size: 18px 18px;
}

.dot-pattern-left {
  top: 17%;
  left: 1.2%;
}

.dot-pattern-right {
  right: 1.2%;
  bottom: 10%;
}
.login-main {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 32px 24px 54px;
}

.login-card {
  width: min(100%, 570px);
  padding: 36px 48px 34px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(250, 252, 255, 0.985));
  box-shadow: var(--shadow);
}

.card-logo-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 244px;
  height: 118px;
  margin: 0 auto 16px;
  overflow: hidden;
}

.card-logo-shell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-heading {
  margin-bottom: 30px;
  text-align: center;
}

.login-heading h1 {
  margin: 0;
  color: var(--ink-900);
  font-size: clamp(26px, 3vw, 33px);
  font-weight: 750;
  letter-spacing: -0.035em;
}

.login-heading p {
  margin: 10px 0 0;
  color: var(--ink-500);
  font-size: 16px;
}

.login-form {
  display: grid;
  gap: 20px;
}

.field-group {
  display: grid;
  gap: 9px;
}

.field-group label {
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 700;
}

.input-shell {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 34, 65, 0.04);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.input-shell:focus-within {
  border-color: rgba(36, 128, 237, 0.8);
  box-shadow:
    0 0 0 4px rgba(36, 128, 237, 0.13),
    0 10px 28px rgba(29, 100, 210, 0.08);
}

.input-shell > svg {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  margin-left: 17px;
  fill: none;
  stroke: #718096;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.input-shell input {
  width: 100%;
  height: 56px;
  padding: 0 15px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink-900);
  font-size: 15px;
}

.input-shell input::placeholder {
  color: #929bad;
  opacity: 1;
}

.password-toggle {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 50px;
  height: 56px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6e7b91;
  cursor: pointer;
}

.password-toggle:hover {
  color: var(--blue-600);
}

.password-toggle svg {
  grid-area: 1 / 1;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.password-toggle .eye-closed {
  display: none;
}

.password-toggle[aria-pressed="true"] .eye-open {
  display: none;
}

.password-toggle[aria-pressed="true"] .eye-closed {
  display: block;
}

.form-links {
  display: flex;
  justify-content: flex-end;
  margin-top: -8px;
}

.form-links a {
  color: var(--blue-600);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.form-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-message {
  display: none;
  min-height: 0;
  margin-top: -3px;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.45;
}

.form-message.is-visible {
  display: block;
}

.form-message.is-error {
  border: 1px solid rgba(201, 52, 52, 0.17);
  background: var(--danger-bg);
  color: var(--danger);
}

.form-message.is-success {
  border: 1px solid rgba(31, 122, 70, 0.16);
  background: var(--success-bg);
  color: var(--success);
}

.submit-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  margin-top: 1px;
  overflow: hidden;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(100deg, #1558df 0%, #138fdb 52%, #10c2b9 100%);
  box-shadow: 0 13px 27px rgba(24, 99, 218, 0.24);
  color: #fff;
  font-size: 16px;
  font-weight: 750;
  cursor: pointer;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    filter 150ms ease;
}

.submit-button::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 15%, rgba(255, 255, 255, 0.2), transparent 65%);
  content: "";
  transform: translateX(-130%);
  transition: transform 550ms ease;
}

.submit-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(24, 99, 218, 0.31);
  filter: saturate(1.08);
}

.submit-button:hover:not(:disabled)::before {
  transform: translateX(130%);
}

.submit-button:active:not(:disabled) {
  transform: translateY(0);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.86;
}

.button-label,
.button-arrow,
.button-spinner {
  position: relative;
  z-index: 1;
}

.button-arrow {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.button-spinner {
  display: none;
  width: 19px;
  height: 19px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.submit-button.is-loading .button-spinner {
  display: inline-block;
}

.submit-button.is-loading .button-arrow {
  display: none;
}

.secure-note {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 28px;
  padding-top: 23px;
  border-top: 1px solid #e5eaf1;
}

.secure-note-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #eef4ff;
  color: #173e79;
}

.secure-note-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.secure-note p {
  margin: 0;
  color: var(--ink-500);
  font-size: 14px;
  line-height: 1.55;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 760px) {
.login-main {
    padding: 22px 15px 34px;
  }

  .login-card {
    padding: 30px 25px 28px;
    border-radius: 20px;
  }

  .card-logo-shell {
    width: 220px;
    height: 104px;
  }

  .login-heading {
    margin-bottom: 26px;
  }
.wave-lines {
    opacity: 0.5;
  }
}

@media (max-width: 420px) {
  .login-card {
    padding-inline: 20px;
  }

  .card-logo-shell {
    width: 198px;
  }

  .login-heading h1 {
    font-size: 25px;
  }

  .secure-note {
    align-items: flex-start;
  }

  .secure-note-icon {
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Login centered without header or footer */
.login-main {
  min-height: 100svh;
  padding: 24px 16px;
}

/* LOGIN_BALANCED_SIZE_START */

.login-main {
  min-height: 100svh !important;
  padding: 14px !important;
}

.login-card {
  width: min(94vw, 336px) !important;
  padding: 22px 25px 21px !important;
  border-radius: 19px !important;
  box-shadow: 0 22px 58px rgba(0, 8, 25, 0.36) !important;
}

.card-logo-shell {
  width: 157px !important;
  height: 76px !important;
  margin: 0 auto 8px !important;
}

.login-heading {
  margin-bottom: 20px !important;
}

.login-heading h1 {
  font-size: 24px !important;
  line-height: 1.2 !important;
}

.login-heading p {
  margin-top: 6px !important;
  font-size: 15px !important;
}

.login-form {
  gap: 14px !important;
}

.field-group {
  gap: 7px !important;
}

.field-group label {
  font-size: 14px !important;
}

.input-shell {
  min-height: 50px !important;
  border-radius: 13px !important;
}

.input-shell > svg {
  width: 20px !important;
  height: 20px !important;
  margin-left: 14px !important;
}

.input-shell input {
  height: 48px !important;
  padding: 0 11px !important;
  font-size: 15px !important;
}

.password-toggle {
  width: 45px !important;
  height: 48px !important;
}

.password-toggle svg {
  width: 20px !important;
  height: 20px !important;
}

.form-links {
  margin-top: -4px !important;
}

.form-links a {
  font-size: 14px !important;
}

.form-message {
  padding: 10px 11px !important;
  font-size: 14px !important;
}

.submit-button {
  min-height: 50px !important;
  border-radius: 13px !important;
  font-size: 15px !important;
}

.button-arrow {
  width: 21px !important;
  height: 21px !important;
}

.button-spinner {
  width: 18px !important;
  height: 18px !important;
}

.secure-note {
  gap: 11px !important;
  margin-top: 18px !important;
  padding-top: 15px !important;
}

.secure-note-icon {
  width: 42px !important;
  height: 42px !important;
}

.secure-note-icon svg {
  width: 22px !important;
  height: 22px !important;
}

.secure-note p {
  font-size: 13px !important;
  line-height: 1.45 !important;
}

/* LOGIN_BALANCED_SIZE_END */

.microsoft-signin { display:flex; align-items:center; justify-content:center; gap:12px; min-height:50px;
  margin:18px 0 14px; border:1px solid #aab6c8; border-radius:13px; color:#14233b;
  background:#fff; font-weight:700; text-decoration:none; box-shadow:0 5px 16px rgba(12,33,63,.08); }
.microsoft-signin:hover { border-color:#2563eb; background:#f7faff; }
.microsoft-mark { width:18px; height:18px; display:grid; grid-template-columns:1fr 1fr; gap:2px; }
.microsoft-mark i:nth-child(1){background:#f25022}.microsoft-mark i:nth-child(2){background:#7fba00}
.microsoft-mark i:nth-child(3){background:#00a4ef}.microsoft-mark i:nth-child(4){background:#ffb900}
.login-separator { display:flex; align-items:center; gap:10px; color:#6b778b; font-size:12px; margin:0 0 14px; }
.login-separator::before,.login-separator::after { content:""; height:1px; background:#dbe2eb; flex:1; }

@media (max-height: 820px) {
  .login-main { padding: 8px !important; }
  .login-card { padding: 14px 20px 15px !important; }
  .card-logo-shell { width: 124px !important; height: 60px !important; margin-bottom: 4px !important; }
  .login-heading { margin-bottom: 10px !important; }
  .login-heading h1 { font-size: 21px !important; }
  .login-heading p { margin-top: 3px !important; font-size: 13px !important; }
  .microsoft-signin { min-height: 43px; margin: 9px 0 9px; font-size: 14px; }
  .login-separator { margin-bottom: 9px; font-size: 11px; }
  .login-form { gap: 10px !important; }
  .field-group { gap: 5px !important; }
  .field-group label { font-size: 13px !important; }
  .input-shell { min-height: 44px !important; }
  .input-shell input { height: 42px !important; font-size: 14px !important; }
  .password-toggle { height: 42px !important; }
  .submit-button { min-height: 44px !important; }
  .secure-note { display: none !important; }
}
