:root {
  color-scheme: dark;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #07111d;
  color: #f4f8fc;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  min-height: 100svh;
}

.login-page {
  display: grid;
  place-items: center;
  padding: 28px 18px;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 18% 20%, rgba(27, 104, 151, .35), transparent 45%),
    radial-gradient(ellipse at 82% 78%, rgba(16, 112, 103, .22), transparent 42%),
    linear-gradient(135deg, #07111d 0%, #102337 52%, #07131e 100%);
  position: relative;
  isolation: isolate;
}

.login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .23;
  background-image:
    linear-gradient(rgba(150, 194, 219, .11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 194, 219, .11) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.login-shell {
  width: 100%;
  max-width: 440px;
}

.login-panel {
  padding: clamp(28px, 6vw, 44px);
  border: 1px solid rgba(205, 229, 245, .19);
  border-radius: 24px;
  background: rgba(9, 23, 37, .72);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .4);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  border: 1px solid rgba(119, 218, 240, .5);
  border-radius: 16px;
  background: linear-gradient(145deg, #1d91b7, #17617e);
  box-shadow: 0 8px 28px rgba(22, 151, 184, .25);
  color: #fff;
  font-size: 28px;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 10px;
  color: #82cfe2;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .18em;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 8vw, 43px);
  line-height: 1.1;
  letter-spacing: -.045em;
}

.subtitle {
  margin: 12px 0 30px;
  color: #a8bdcd;
  font-size: 15px;
  line-height: 1.5;
}

form {
  display: grid;
  gap: 11px;
}

label {
  margin-top: 8px;
  color: #dbe7f0;
  font-size: 13px;
  font-weight: 650;
}

input {
  width: 100%;
  min-height: 49px;
  padding: 12px 14px;
  border: 1px solid rgba(185, 211, 229, .23);
  border-radius: 11px;
  outline: none;
  background: rgba(3, 13, 23, .65);
  color: #f5fbff;
  font: inherit;
  font-size: 16px;
  transition: border-color .18s, box-shadow .18s;
}

input:focus-visible {
  border-color: #5ac6e4;
  box-shadow: 0 0 0 3px rgba(53, 181, 215, .17);
}

button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 51px;
  margin-top: 15px;
  padding: 0 17px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(105deg, #1598ba, #167eaa);
  box-shadow: 0 8px 24px rgba(9, 132, 173, .23);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
  transition: filter .18s, transform .18s;
}

button:hover {
  filter: brightness(1.1);
}

button:active {
  transform: translateY(1px);
}

button:focus-visible {
  outline: 3px solid #a2eaff;
  outline-offset: 3px;
}

.error-message {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 133, 133, .35);
  border-radius: 10px;
  background: rgba(128, 35, 45, .24);
  color: #ffc2c2;
  font-size: 13px;
  line-height: 1.5;
}

.security-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 25px 0 0;
  color: #8fa7b8;
  font-size: 11px;
  line-height: 1.6;
}

.security-note span {
  color: #5dd6b0;
  font-size: 9px;
  padding-top: 2px;
}

@media (max-width: 420px) {
  .login-page {
    padding: 18px 12px;
  }

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

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