:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --ink: #22252d;
  --muted: #6b7280;
  --line: #eceff5;
  --bg: #edf0f5;
  --danger: #dc2626;
  --success: #16a34a;
  --shadow-a: 18px 18px 46px rgba(170, 179, 195, .65);
  --shadow-b: -18px -18px 46px rgba(255, 255, 255, .95);
  --inner-a: inset 9px 9px 18px rgba(170, 179, 195, .45);
  --inner-b: inset -9px -9px 18px rgba(255, 255, 255, .95);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, .8), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(37, 99, 235, .09), transparent 30%),
    var(--bg);
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 36px 18px;
}

.login-card {
  width: min(470px, 100%);
  padding: 44px 40px 38px;
  border-radius: 46px;
  background: rgba(238, 241, 246, .92);
  box-shadow: var(--shadow-a), var(--shadow-b);
}

.card-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: max-content;
  margin: 0 auto 34px;
}

.card-logo img {
  width: 158px;
  height: auto;
  display: block;
}

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

.field {
  position: relative;
}

label {
  display: block;
  margin: 0 0 9px;
  color: #3f4350;
  font-size: 15px;
  font-weight: 800;
}

input {
  width: 100%;
  height: 58px;
  border: 0;
  outline: 0;
  border-radius: 999px;
  padding: 0 22px;
  background: #eef1f6;
  color: #2d3340;
  font-size: 15px;
  font-weight: 650;
  box-shadow: var(--inner-a), var(--inner-b);
  transition: box-shadow .16s ease, background .16s ease;
}

input::placeholder {
  color: #8b93a3;
  font-weight: 600;
}

input:focus {
  background: #f3f6fb;
  box-shadow:
    inset 5px 5px 12px rgba(170, 179, 195, .42),
    inset -5px -5px 12px rgba(255, 255, 255, .96),
    0 0 0 4px rgba(37, 99, 235, .10);
}

.password-field input {
  padding-right: 76px;
}

.eye {
  position: absolute;
  right: 14px;
  bottom: 10px;
  height: 38px;
  min-width: 54px;
  border: 0;
  border-radius: 999px;
  background: #eef1f6;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow:
    5px 5px 12px rgba(170, 179, 195, .42),
    -5px -5px 12px rgba(255, 255, 255, .96);
}

.login-btn {
  width: 100%;
  min-height: 58px;
  margin-top: 6px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow:
    12px 12px 24px rgba(102, 123, 162, .38),
    -12px -12px 24px rgba(255, 255, 255, .9);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.login-btn:hover {
  transform: translateY(-1px);
  background: var(--blue-dark);
}

.login-bottom-links {
  margin-top: 24px;
  display: grid;
  gap: 13px;
  text-align: center;
}

.login-bottom-links > a {
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.login-bottom-links > a:hover {
  color: var(--blue-dark);
}

.login-footer-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.login-footer-line a {
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

.notice {
  margin: 0 0 18px;
  padding: 13px 16px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.notice.error {
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fecaca;
}

.notice.success {
  color: #166534;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
}

.activation-box {
  margin: 0 0 18px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .45);
  box-shadow:
    inset 5px 5px 12px rgba(170, 179, 195, .24),
    inset -5px -5px 12px rgba(255, 255, 255, .75);
  text-align: center;
}

.activation-box strong {
  display: block;
  color: #343842;
  font-size: 15px;
  font-weight: 900;
}

.activation-box span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

.activation-link {
  margin-top: 12px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.activation-link:hover {
  color: var(--blue-dark);
}

.activation-link.is-disabled,
.activation-link:disabled {
  color: #8c95a8;
  cursor: not-allowed;
  text-decoration: none;
}

.status {
  min-height: 20px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 900;
  color: var(--muted);
}

.status.ok {
  color: var(--success);
}

.status.bad {
  color: var(--danger);
}

@media (max-width: 620px) {
  .login-page {
    padding: 28px 14px;
    place-items: center;
  }

  .login-card {
    padding: 34px 22px 30px;
    border-radius: 34px;
  }

  .card-logo {
    margin-bottom: 28px;
  }

  .card-logo img {
    width: 146px;
  }

  input {
    height: 56px;
  }

  .login-btn {
    min-height: 56px;
  }

  .login-footer-line {
    flex-wrap: wrap;
  }
}