:root {
  --bg-deep: #0a1f2e;
  --bg-mid: #0d3d5c;
  --accent: #d4af37;
  --accent-soft: rgba(212, 175, 55, 0.15);
  --text: #e8eef2;
  --text-muted: #8aa3b5;
  --card: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.1);
  --input-bg: rgba(10, 31, 46, 0.65);
  --radius: 14px;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(13, 61, 92, 0.9), transparent),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(212, 175, 55, 0.08), transparent),
    radial-gradient(ellipse 50% 40% at 0% 80%, rgba(13, 61, 92, 0.5), transparent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 32px;
}

.shell {
  width: 100%;
  max-width: 420px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  justify-content: center;
}

.brand__mark {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.25));
}

.brand__text {
  text-align: left;
}

.brand__name {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.brand__tag {
  margin: 4px 0 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.card {
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow);
}

.card__title {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 700;
}

.card__lead {
  margin: 0 0 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-alert {
  margin: 0 0 18px;
  padding: 12px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.45;
  color: #fecaca;
  background: rgba(185, 28, 28, 0.22);
  border: 1px solid rgba(248, 113, 113, 0.4);
  border-radius: 10px;
}

.form-alert[hidden] {
  display: none;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: var(--input-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder {
  color: rgba(138, 163, 181, 0.65);
}

.form-group input:hover {
  border-color: rgba(212, 175, 55, 0.35);
}

.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-group input.input-invalid {
  border-color: rgba(248, 113, 113, 0.55);
}

.form-group input.input-invalid:focus {
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.btn {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 14px 20px;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--bg-deep);
  background: linear-gradient(165deg, #f0d060, var(--accent) 55%, #a67c1a);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.25);
}

.btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 6px 28px rgba(212, 175, 55, 0.35);
}

.btn:active {
  transform: scale(0.98);
}

.hint {
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--card-border);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.hint a {
  color: var(--accent);
  text-decoration: none;
}

.hint a:hover {
  text-decoration: underline;
}

.site-footer {
  margin-top: 32px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 380px) {
  .brand {
    flex-direction: column;
    text-align: center;
  }

  .brand__text {
    text-align: center;
  }
}
