:root {
  --bg: #071127;
  --panel: rgba(9, 20, 46, 0.86);
  --panel-strong: rgba(8, 17, 38, 0.94);
  --border: rgba(89, 184, 255, 0.26);
  --text: #f6fbff;
  --muted: #9ab6d8;
  --primary: #31d3f8;
  --secondary: #ff9f43;
  --danger: #ff6f91;
  --shadow: 0 24px 80px rgba(3, 10, 26, 0.7);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1400px circle at 8% 12%, #102a5f 0%, transparent 48%),
    radial-gradient(1200px circle at 92% 84%, #3b1f58 0%, transparent 55%),
    linear-gradient(140deg, var(--bg) 0%, #040914 100%);
  overflow: hidden;
}

.ambient {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(55px);
  opacity: 0.35;
}

.ambient-top {
  width: 320px;
  height: 320px;
  top: -100px;
  left: -80px;
  background: #2dc8ff;
}

.ambient-bottom {
  width: 380px;
  height: 380px;
  right: -110px;
  bottom: -120px;
  background: #ff9b4b;
}

.login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(460px, 92vw);
  padding: 28px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-strong) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(7px);
}

.kicker {
  margin: 0;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.77rem;
  font-weight: 700;
}

h1 {
  margin: 10px 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.05;
}

.subtitle {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.45;
}

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

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

input {
  width: 100%;
  border: 1px solid rgba(95, 185, 255, 0.45);
  background: rgba(4, 11, 28, 0.65);
  color: var(--text);
  border-radius: 11px;
  padding: 12px 14px;
  font-size: 0.95rem;
}

input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(49, 211, 248, 0.18);
}

button {
  margin-top: 6px;
  border: none;
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  color: #041226;
  background: linear-gradient(130deg, #27a4ff 0%, #31d3f8 100%);
}

button:disabled {
  opacity: 0.7;
  cursor: progress;
}

.login-message {
  min-height: 1.3em;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.login-message.is-error {
  color: #ff9db6;
}

.login-message.is-ok {
  color: #71f0c4;
}
