/* Hecaton dark theme (ALL-11): the managed login palette, infra/branding/README.md. */
:root {
  --night: #171336;
  --card: #211a4a;
  --field: #2a2160;
  --border: #5a4f99;
  --violet: #8061f2;
  --violet-dark: #6645df;
  --aqua: #35d0d2;
  --text: #e9e6f2;
  --muted: #b7b0d6;
  --error: #eb6f6f;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

body {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--night);
  color: var(--text);
  font:
    16px/1.5 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  overflow-x: hidden;
}

/* The wave background, in CSS only (the CSP allows no images). */
.wave {
  position: fixed;
  inset: -25%;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(128, 97, 242, 0.45), transparent 70%),
    radial-gradient(ellipse 50% 35% at 80% 25%, rgba(53, 208, 210, 0.3), transparent 70%),
    repeating-linear-gradient(
      165deg,
      transparent 0 46px,
      rgba(128, 97, 242, 0.08) 46px 48px,
      transparent 48px 96px
    );
  animation: drift 20s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: translate3d(-3%, 2%, 0) rotate(-2deg);
  }
  to {
    transform: translate3d(3%, -2%, 0) rotate(3deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wave {
    animation: none;
  }
}

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(33, 26, 74, 0.92);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.mark {
  display: block;
  margin: 0 auto 12px;
}

h1 {
  margin: 0 0 24px;
  font-size: 1.4rem;
  font-weight: 600;
}

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

label {
  color: var(--muted);
  font-size: 0.9rem;
}

input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--field);
  color: var(--text);
  font: inherit;
}

input:focus {
  border-color: var(--aqua);
  outline: 2px solid rgba(53, 208, 210, 0.35);
  outline-offset: 1px;
}

button {
  padding: 12px 14px;
  border: 0;
  border-radius: 8px;
  background: var(--violet);
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button:hover,
button:focus-visible {
  background: var(--violet-dark);
}

button:disabled {
  opacity: 0.6;
  cursor: default;
}

.message {
  min-height: 1.5em;
  margin: 0;
  color: var(--error);
  font-size: 0.9rem;
}

.hint {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}
