:root {
  --peg-deep: #043b70;
  --peg-navy: #062d58;
  --peg-blue: #087dcc;
  --peg-sky: #08a3e3;
  --peg-ice: #edf7ff;
  --text: #17344f;
  --muted: #6c8297;
  --line: #dce9f4;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background: #f5faff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

.login-page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(440px, 0.95fr) minmax(480px, 1.05fr);
  overflow: hidden;
}

.brand-panel {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(34px, 5vw, 74px);
  color: #fff;
  background:
    linear-gradient(148deg, rgba(3, 45, 88, 0.98), rgba(5, 103, 177, 0.94)),
    radial-gradient(circle at 20% 10%, #15b8f0, transparent 55%);
}

.brand-panel::before,
.brand-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transform: rotate(45deg);
}

.brand-panel::before {
  right: -145px;
  bottom: 40px;
  width: 360px;
  height: 360px;
}

.brand-panel::after {
  right: -52px;
  bottom: 114px;
  width: 190px;
  height: 190px;
}

.brand-orb {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(1px);
}

.orb-one {
  top: -180px;
  right: -140px;
  width: 470px;
  height: 470px;
  background: rgba(15, 178, 235, 0.25);
}

.orb-two {
  left: -180px;
  bottom: -210px;
  width: 470px;
  height: 470px;
  background: rgba(0, 30, 74, 0.32);
}

.brand-content {
  width: min(560px, 100%);
  margin: auto 0;
}

.brand-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.03em;
}

.brand-status i,
.login-card footer i {
  width: 7px;
  height: 7px;
  display: inline-block;
  background: #32d596;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(50, 213, 150, 0.14);
}

.brand-logo {
  width: clamp(230px, 24vw, 310px);
  height: clamp(64px, 6.5vw, 82px);
  display: block;
  margin: clamp(24px, 4vh, 45px) 0 clamp(16px, 2vh, 26px);
  object-fit: cover;
  object-position: center;
  filter: brightness(0) invert(1);
  transform: translateX(-8%);
}

.brand-copy > span,
.login-card .eyebrow {
  color: #65d4ff;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-copy h1 {
  margin: 13px 0 17px;
  font-size: clamp(32px, 3.4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.brand-copy p {
  max-width: 510px;
  margin: 0;
  color: rgba(235, 247, 255, 0.76);
  font-size: clamp(13px, 1.1vw, 16px);
  line-height: 1.7;
}

.brand-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 29px;
}

.brand-features span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  font-weight: 700;
}

.brand-features i {
  width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #043e70;
  background: #64dbff;
  border-radius: 50%;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
}

.brand-footer {
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.login-panel {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(26px, 6vw, 80px);
  background:
    radial-gradient(circle at 100% 0%, rgba(8, 163, 227, 0.11), transparent 36%),
    radial-gradient(circle at 0% 100%, rgba(8, 125, 204, 0.08), transparent 34%),
    #f8fbfe;
}

.login-panel::after {
  content: "";
  position: absolute;
  right: 7%;
  bottom: 7%;
  width: 65px;
  height: 65px;
  border: 10px solid rgba(8, 125, 204, 0.05);
  transform: rotate(45deg);
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  padding: clamp(28px, 4vw, 45px);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(213, 228, 241, 0.9);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(16, 63, 103, 0.12);
  backdrop-filter: blur(14px);
}

.login-card header h2 {
  margin: 9px 0 7px;
  color: var(--peg-navy);
  font-size: clamp(25px, 2.7vw, 32px);
  letter-spacing: -0.035em;
}

.login-card header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.login-alert {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 20px 0 -5px;
  padding: 11px 12px;
  color: #9b2f3e;
  background: #fff0f2;
  border: 1px solid #f4cbd1;
  border-radius: 11px;
}

.login-alert > span {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #c94152;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.login-alert p {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 11px;
  font-weight: 750;
}

.login-card form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.login-field {
  display: grid;
  gap: 8px;
}

.login-field > span:first-child {
  color: #3f5871;
  font-size: 11px;
  font-weight: 800;
}

.input-wrap {
  position: relative;
  display: block;
}

.input-wrap > svg {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 19px;
  height: 19px;
  color: #7890a8;
  transform: translateY(-50%);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  pointer-events: none;
}

.input-wrap input {
  width: 100%;
  height: 52px;
  padding: 0 48px 0 45px;
  color: var(--text);
  background: #f9fcff;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  font-size: 13px;
  font-weight: 650;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.input-wrap input::placeholder {
  color: #9aabba;
  font-weight: 500;
}

.input-wrap input:focus {
  background: #fff;
  border-color: #70b9e9;
  box-shadow: 0 0 0 4px rgba(8, 125, 204, 0.1);
}

.password-toggle {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #728aa2;
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--peg-blue);
  background: var(--peg-ice);
  outline: none;
}

.password-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

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

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

.login-submit {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 3px;
  color: #fff;
  background: linear-gradient(135deg, var(--peg-blue), #075ca8);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(7, 104, 179, 0.22);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.login-submit:hover {
  filter: brightness(1.04);
  box-shadow: 0 15px 32px rgba(7, 104, 179, 0.28);
  transform: translateY(-1px);
}

.login-submit:active {
  transform: translateY(0);
}

.login-submit svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.login-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 25px;
  padding-top: 18px;
  color: #7890a7;
  border-top: 1px solid #edf2f7;
}

.login-card footer > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  font-weight: 750;
}

.login-card footer small {
  font-size: 9px;
}

.mobile-brand {
  display: none;
}

@media (max-width: 940px) {
  .login-page {
    grid-template-columns: minmax(300px, 0.8fr) minmax(420px, 1.2fr);
  }
  .brand-panel {
    padding: 38px;
  }
  .brand-copy h1 {
    font-size: 34px;
  }
  .brand-features {
    display: grid;
  }
}

@media (max-width: 720px) {
  .login-page {
    display: block;
    min-height: 100vh;
    min-height: 100svh;
    overflow: auto;
    background: linear-gradient(160deg, #e9f6ff, #f9fcff 52%, #eef8ff);
  }
  .brand-panel {
    display: none;
  }
  .login-panel {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    align-content: center;
    gap: 10px;
    padding: 22px;
  }
  .mobile-brand {
    display: flex;
    justify-content: center;
    height: 72px;
    overflow: hidden;
  }
  .mobile-brand img {
    width: 200px;
    height: 64px;
    object-fit: cover;
    object-position: center;
  }
  .login-card {
    margin: 0 auto;
    padding: 28px 24px;
    border-radius: 20px;
  }
}

@media (max-width: 390px) {
  .login-panel {
    padding: 15px;
  }
  .login-card {
    padding: 24px 19px;
  }
  .login-card footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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