:root {
  color-scheme: light;
  --navy: #052b4f;
  --navy-deep: #021f3a;
  --blue: #1769c2;
  --blue-bright: #2f86df;
  --blue-soft: #eaf4ff;
  --surface: #ffffff;
  --line: #d4e1ed;
  --line-strong: #b8ccdf;
  --text: #0b2742;
  --muted: #63788d;
  --green: #1b9b70;
  --red: #b8333f;
  --shadow: 0 26px 70px rgba(5, 43, 79, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 12%, rgba(47, 134, 223, 0.19), transparent 28rem),
    radial-gradient(circle at 94% 90%, rgba(23, 105, 194, 0.12), transparent 30rem),
    linear-gradient(145deg, #f1f7fc 0%, #e7f0f7 48%, #f7fafc 100%);
  color: var(--text);
  font-size: 14px;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
}

body::before {
  top: -180px;
  right: -110px;
  width: 420px;
  height: 420px;
  border: 62px solid rgba(255, 255, 255, 0.45);
}

body::after {
  bottom: -220px;
  left: -150px;
  width: 430px;
  height: 430px;
  border: 72px solid rgba(47, 134, 223, 0.08);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: 28px;
}

.login-panel {
  position: relative;
  width: min(1120px, 100%);
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
  overflow: hidden;
  border: 1px solid rgba(184, 204, 223, 0.82);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
}

.login-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 9px;
  background: linear-gradient(180deg, var(--navy), var(--blue-bright));
}

.login-identity {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 60px 58px 66px;
  background:
    radial-gradient(circle at 88% 78%, rgba(47, 134, 223, 0.12), transparent 17rem),
    linear-gradient(145deg, #fff, #f7fbff);
}

.login-identity::after {
  content: "U17";
  position: absolute;
  right: 34px;
  bottom: 14px;
  color: rgba(23, 105, 194, 0.045);
  font-size: clamp(130px, 16vw, 220px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.08em;
  pointer-events: none;
}

.login-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: min(500px, 90%);
  max-height: 116px;
  object-fit: contain;
  object-position: left center;
}

.login-product {
  position: relative;
  z-index: 1;
  max-width: 570px;
  margin-top: 60px;
}

.login-product > span,
.access-eyebrow {
  display: block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

h1,
h2,
p {
  margin: 0;
}

.login-product h1 {
  margin-top: 10px;
  color: var(--navy-deep);
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.login-product p {
  max-width: 530px;
  margin-top: 17px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.login-feature-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-top: 32px;
}

.login-feature-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #36536e;
  font-size: 13px;
  font-weight: 700;
}

.login-feature-list b {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #e5f6ef;
  color: var(--green);
  font-size: 12px;
}

.login-access {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 54px 54px;
  border-left: 1px solid rgba(212, 225, 237, 0.8);
  background: #fff;
}

.access-heading {
  margin-bottom: 28px;
}

.access-heading h2 {
  margin-top: 8px;
  color: var(--navy-deep);
  font-size: 29px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.access-heading p {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.45;
}

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

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

.field > span:first-child {
  color: #2c4762;
  font-size: 12px;
  font-weight: 850;
}

.input-shell {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #fbfdff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.input-shell:focus-within {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 134, 223, 0.13);
}

.input-shell svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: #6d8499;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

input {
  min-width: 0;
  width: 100%;
  height: 50px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

input::placeholder {
  color: #9aabba;
}

.button {
  min-height: 53px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
  padding: 0 22px;
  border: 0;
  border-radius: 11px;
  font-weight: 850;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button.primary {
  background: linear-gradient(135deg, var(--navy), #07588f);
  box-shadow: 0 12px 24px rgba(5, 43, 79, 0.2);
  color: #fff;
}

.button.primary:hover {
  background: linear-gradient(135deg, #064272, var(--blue));
  box-shadow: 0 15px 28px rgba(5, 43, 79, 0.25);
  transform: translateY(-1px);
}

.button.primary:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

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

.message {
  min-height: 18px;
  padding: 0 2px;
  color: var(--red);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
}

.message:not(:empty) {
  padding: 10px 12px;
  border-left: 4px solid var(--red);
  border-radius: 8px;
  background: #fff0f1;
}

.login-security {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8fbfe;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.security-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(27, 155, 112, 0.12);
}

.login-shell > footer {
  color: #71879a;
  font-size: 11px;
  text-align: center;
}

@media (max-width: 900px) {
  .login-shell {
    padding: 18px;
  }

  .login-panel {
    min-height: 0;
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .login-identity {
    padding: 34px 38px 32px 44px;
  }

  .login-logo {
    width: min(380px, 88%);
    max-height: 86px;
  }

  .login-product {
    margin-top: 30px;
  }

  .login-product h1 {
    font-size: 34px;
  }

  .login-product p {
    font-size: 15px;
  }

  .login-feature-list {
    display: none;
  }

  .login-access {
    padding: 38px 42px 42px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 520px) {
  .login-shell {
    place-items: stretch;
    align-content: center;
    padding: 10px;
  }

  .login-panel {
    border-radius: 17px;
  }

  .login-panel::before {
    width: 6px;
  }

  .login-identity {
    padding: 27px 24px 25px 30px;
  }

  .login-logo {
    width: min(290px, 92%);
  }

  .login-product {
    margin-top: 22px;
  }

  .login-product h1 {
    font-size: 28px;
  }

  .login-product p {
    margin-top: 11px;
    font-size: 13px;
  }

  .login-access {
    padding: 30px 24px 32px 30px;
  }

  .access-heading h2 {
    font-size: 24px;
  }

  .login-shell > footer {
    padding: 0 16px;
  }
}

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