:root {
  color-scheme: dark;
  --bg-primary: #0e1015;
  --bg-panel: #151922;
  --border-muted: rgba(255, 255, 255, 0.07);
  --text-primary: #f5f7fb;
  --text-muted: rgba(245, 247, 251, 0.65);
  --accent: #5ac8fa;
  --danger: #ff6b6b;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top, rgba(90, 200, 250, 0.08), transparent 40%), var(--bg-primary);
  color: var(--text-primary);
}

main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
}

.auth-card {
  width: min(420px, 100%);
  background: var(--bg-panel);
  border: 1px solid var(--border-muted);
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 18px 46px rgba(8, 17, 33, 0.35);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.logo img {
  width: 42px;
  height: 42px;
}

.logo span {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--text-muted);
}

h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 600;
}

p.description {
  margin: 0 0 24px;
  color: var(--text-muted);
}

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

label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-muted);
  background: rgba(18, 22, 30, 0.85);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
  outline: none;
  border-color: rgba(90, 200, 250, 0.45);
  box-shadow: 0 0 0 3px rgba(90, 200, 250, 0.15);
}

button[type="submit"],
button.dev-login {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, rgba(90, 200, 250, 0.9), rgba(90, 160, 250, 0.9));
  color: #0b0f17;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button[type="submit"]:hover,
button.dev-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(90, 200, 250, 0.3);
}

button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.inline-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.inline-actions a {
  color: var(--accent);
  text-decoration: none;
}

.inline-actions a:hover {
  text-decoration: underline;
}

.notice {
  background: rgba(90, 200, 250, 0.12);
  border: 1px solid rgba(90, 200, 250, 0.25);
  color: var(--text-primary);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 0.92rem;
}

.error {
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.28);
  color: #ffb4b4;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 0.92rem;
  display: none;
}

.error.visible {
  display: block;
}

.muted-link {
  margin-top: 18px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.muted-link a {
  color: var(--accent);
  text-decoration: none;
}

.muted-link a:hover {
  text-decoration: underline;
}

.dev-login {
  margin-top: 12px;
  background: rgba(90, 200, 250, 0.2);
  color: var(--text-primary);
  border: 1px dashed rgba(90, 200, 250, 0.45);
}

.dev-login.hidden {
  display: none;
}

@media (max-width: 480px) {
  .auth-card {
    padding: 24px;
  }

  h1 {
    font-size: 1.5rem;
  }
}
