:root {
  --bg: #0b1220;
  --card: #121a2b;
  --text: #e9eef9;
  --muted: #9fb0d3;
  --accent: #2f6fed;
  --danger: #ff5a5f;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1000px 600px at 20% 10%, #111a2f, #0b1220);
  color: var(--text);
}

.login-container {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 420px;
  text-align: center;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}

h1 {
  margin: 0 0 6px;
  font-size: 1.6rem;
}

.subtitle {
  margin: 0 0 18px;
  color: var(--muted);
}

.form-field {
  margin-bottom: 16px;
}

label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #0f1626;
  color: var(--text);
  outline: none;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47,111,237,0.25);
}

.hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.with-toggle {
  position: relative;
  display: flex;
  align-items: center;
}

.with-toggle input {
  padding-right: 44px;
}

.with-toggle .toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--muted);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
}

.with-toggle .toggle:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text);
}

.actions {
  margin-top: 18px;
}

.btn {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  border: 0;
  font-weight: 600;
  cursor: pointer;
}

.btn:hover {
  filter: brightness(1.06);
}

.alert {
  background: rgba(255,90,95,0.12);
  border: 1px solid rgba(255,90,95,0.35);
  color: #ffdada;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.meta {
  margin-top: 18px;
  color: var(--muted);
  text-align: center;
}
