
  :root {
  --bg: #0b0f14;
  --card: #111827;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --primary: #3b82f6;
  --success: #22c55e;
  --error: #ef4444;
  --input: #020617;
}

body.light {
  --bg: #f3f4f6;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --input: #f9fafb;
}

* {
  box-sizing: border-box;
  font-family: system-ui, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* THEME TOGGLE */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 20px;
  cursor: pointer;
  opacity: .8;
}

/* WRAPPER */
.auth-wrapper {
  width: 100%;
  max-width: 420px;
  padding: 20px;
}

/* CARD */
.auth-card {
  background: var(--card);
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  animation: fadeUp .5s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: none; }
}

h1 {
  margin: 0;
  font-size: 28px;
}

.subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 25px;
}

/* INPUTS */
.input-group {
  margin-bottom: 18px;
}

label {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
  color: var(--muted);
}

input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--input);
  color: var(--text);
  outline: none;
}

input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59,130,246,.25);
}

/* PASSWORD */
.password-group {
  position: relative;
}

.eye {
  position: absolute;
  right: 12px;
  top: 36px;
  cursor: pointer;
  opacity: .7;
}
.eye {
  color: var(--muted);
  transition: color .2s ease;
}

.eye:hover {
  color: var(--primary);
}

input {
  background: var(--input);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.08);
}

body.light input {
  border: 1px solid rgba(0,0,0,.08);
}

input::placeholder {
  color: var(--muted);
}

/* BUTTON */
.btn-primary {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: white;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
}

.btn-primary:hover {
  opacity: .9;
}

/* ALERTS */
.alert {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 14px;
  animation: slide .3s ease;
}

@keyframes slide {
  from { transform: translateY(-8px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.alert.error {
  background: rgba(239,68,68,.15);
  color: var(--error);
}

.alert.success {
  background: rgba(34,197,94,.15);
  color: var(--success);
}

/* FOOTER */
.footer-text {
  margin-top: 18px;
  font-size: 14px;
  text-align: center;
}

.footer-text a {
  color: var(--primary);
  text-decoration: none;
}

/* REMEMBER */
.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 10px;
  opacity: .85;
}

/* BUTTON LOADING */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-primary.loading .btn-text {
  display: none;
}

.btn-primary.loading .spinner {
  display: inline-block;
}

.password-meter {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,.1);
  border-radius: 6px;
  margin-top: 6px;
  overflow: hidden;
}

body.light .password-meter {
  background: rgba(0,0,0,.1);
}

.meter-bar {
  height: 100%;
  width: 0%;
  transition: width .3s ease, background .3s ease;
  border-radius: 6px;
}
