html,
body {
  height: 100%;
  margin: 0;
  background: #0a0f1c;
}

body {
  overflow: hidden;
}

.login_page_new_ui {
  position: relative;
  display: flex;
  min-height: 100%;
  overflow: hidden;
  color: #0f172a;
  font-family: Hellix, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-background,
.login-background__grid,
.login-background__glow,
.login-background__canvas {
  position: absolute;
  inset: 0;
}

.login-background {
  z-index: 0;
  overflow: hidden;
  background: #0a0f1c;
}

.login-background__glow {
  top: 50%;
  left: 50%;
  width: min(80vw, 860px);
  height: min(80vw, 860px);
  border-radius: 999px;
  background: rgba(30, 64, 175, 0.15);
  filter: blur(150px);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.login-background__grid {
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(79, 79, 79, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(79, 79, 79, 0.1) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, transparent 20%, #000 78%);
}

.login-background__canvas {
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
}

.login-shell {
  position: relative;
  z-index: 3;
  display: flex;
  width: 100%;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 24px;
}

.login-card {
  width: min(100%, 430px);
  box-sizing: border-box;
  padding: 38px 38px 34px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(2, 8, 23, 0.25), 0 8px 30px rgba(0, 0, 0, 0.06);
}

.login-card__header {
  margin-bottom: 28px;
  text-align: center;
}

.login-card__header h1 {
  margin: 0 0 10px;
  color: #1d4ed8;
  font-size: clamp(38px, 5vw, 48px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  background: linear-gradient(90deg, #1d4ed8, #2563eb, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

.login-card__header p {
  margin: 0;
  color: #64748b;
  font-size: 16px;
  font-weight: 700;
}

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

.input-wrapper label,
.form-group label {
  display: block;
  margin: 0 0 9px;
  color: #334155;
  font-size: 17px;
  font-weight: 800;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  min-height: 54px;
  box-sizing: border-box;
  border: 1px solid #dce4ec;
  border-radius: 14px;
  outline: none;
  background: #f0f4f8;
  color: #0f172a;
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  padding: 14px 18px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.login-form input[type="password"] {
  font-weight: 800;
  letter-spacing: 0.14em;
}

.login-form input[type="text"]::placeholder,
.login-form input[type="password"]::placeholder {
  color: #94a3b8;
  font-weight: 600;
  letter-spacing: 0;
}

.login-form input[type="text"]:hover,
.login-form input[type="password"]:hover {
  border-color: #bfdbfe;
  background: #f8fafc;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
  border-color: #3b82f6;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
}

.login-form .error {
  margin: 0;
  border-radius: 10px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  padding: 10px 12px;
}

.form-group {
  display: flex;
  align-items: center;
  padding: 5px 0 3px;
}

.form-group input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.form-group label {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0;
  color: #475569;
  cursor: pointer;
  user-select: none;
}

.form-group label::before {
  content: "";
  display: inline-block;
  width: 21px;
  height: 21px;
  box-sizing: border-box;
  margin-right: 12px;
  border: 2px solid #cbd5e1;
  border-radius: 5px;
  background: #fff;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.form-group label::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 8px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: rotate(45deg) scale(0.8);
  transition: opacity 160ms ease, transform 160ms ease;
}

.form-group input:checked + label::before {
  border-color: #5a7bed;
  background: #5a7bed;
}

.form-group input:checked + label::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.form-group input:focus-visible + label::before {
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.22);
}

.login-button {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  background: #18181b;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.login-button:hover {
  background: #27272a;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.login-button:active {
  transform: scale(0.98);
}

.login-button:focus-visible {
  outline: 4px solid rgba(59, 130, 246, 0.24);
  outline-offset: 3px;
}

.login-signature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #f1f5f9;
}

.login-signature strong,
.login-signature span {
  display: block;
}

.login-signature strong {
  color: #0f172a;
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.18em;
}

.login-signature span {
  margin-top: 4px;
  color: #475569;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 520px) {
  body {
    overflow: auto;
  }

  .login-shell {
    min-height: 100svh;
    padding: 18px;
  }

  .login-card {
    padding: 26px 22px 24px;
    border-radius: 14px;
  }

  .login-signature strong {
    letter-spacing: 0.12em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-button,
  .login-form input,
  .form-group label::before,
  .form-group label::after {
    transition: none;
  }
}
