:root {
  --bg: #051525;
  --panel: #12253a;
  --border: #2a3f59;
  --border-focus: #2f9eff;
  --text: #ecf4ff;
  --muted: #8aa3bf;
  --blue: #2f9eff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 15% 0%, rgba(48, 124, 219, 0.22), transparent 40%),
    radial-gradient(circle at 80% 100%, rgba(30, 86, 160, 0.25), transparent 45%),
    var(--bg);
  color: var(--text);
}

.login-wrapper {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-shell {
  width: min(100%, 470px);
  display: grid;
  justify-items: center;
  gap: 18px;
}

.home-link {
  color: #82c3ff;
  text-decoration: none;
  font-size: 0.95rem;
}

.home-link:hover {
  text-decoration: underline;
}

.login-card {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(24, 40, 61, 0.96), rgba(16, 30, 46, 0.95));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.brand-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.brand-logo {
  width: 100px;
  height: 74px;
  object-fit: contain;
}

.brand-head h1 {
  margin: 0;
  font-size: 3rem;
  letter-spacing: -0.02em;
}

.login-form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  grid-template-columns: 28px 1fr 36px;
  align-items: center;
  min-height: 58px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0d1f32;
  padding: 0 10px;
}

.field:first-of-type {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px rgba(47, 158, 255, 0.16);
}

.field-icon {
  color: #96abc2;
  text-align: center;
}

.field input {
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text);
  font-size: 1.05rem;
}

.field input::placeholder {
  color: #7b91aa;
}

.toggle-pass {
  border: 0;
  background: transparent;
  color: #8fa7c1;
  font-size: 1rem;
}

.checks {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
  flex-wrap: wrap;
}

.checks label {
  color: #d4e2f4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}

.checks input {
  accent-color: var(--blue);
  width: 18px;
  height: 18px;
}

.btn-login {
  margin-top: 2px;
  min-height: 54px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #3eb0ff, #1f6dd6);
  color: white;
  font-weight: 700;
  font-size: 1.9rem;
  cursor: pointer;
}

.link-reset {
  justify-self: center;
  margin-top: 10px;
  color: #82c3ff;
  text-decoration: none;
  font-size: 1.6rem;
}

.link-reset:hover {
  text-decoration: underline;
}

.login-footer {
  text-align: center;
  margin-top: 4px;
}

.copyright {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 640px) {
  .login-card {
    padding: 22px 18px;
  }

  .brand-logo {
    width: 84px;
    height: 62px;
  }

  .brand-head h1 {
    font-size: 2.2rem;
  }

  .btn-login {
    font-size: 1.4rem;
  }

  .link-reset,
  .copyright {
    font-size: 1.1rem;
  }
}
