:root {
  color-scheme: light;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #6b7280;
  --border: #e2e8f0;
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  margin: 0;
  min-height: 100vh;
  color: var(--text);
}

.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  width: min(420px, 100%);
  background: var(--card);
  border-radius: 18px;
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.muted {
  color: var(--muted);
  margin: 6px 0 0;
}

.auth-header {
  text-align: center;
  margin-bottom: 10px;
}

.auth-logo {
  width: 180px;
  height: auto;
  display: block;
  margin: 0 auto;
}

label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 600;
  color: #0f172a;
}

input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  background: #f8fafc;
}

input:focus {
  outline: 2px solid rgba(37, 99, 235, 0.25);
  border-color: #93c5fd;
}

button {
  width: 100%;
  margin-top: 18px;
  padding: 12px 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 20px rgba(124, 58, 237, 0.28);
}

.messages {
  margin: 14px 0;
}

.message {
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 8px;
  font-weight: 600;
}

.message.error {
  background: #fee2e2;
  color: #991b1b;
}

.message.success {
  background: #dcfce7;
  color: #166534;
}

.message.warning {
  background: #fef9c3;
  color: #854d0e;
}

.hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.auth-footer {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
}

.auth-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  margin-left: 6px;
}

.auth-link:hover {
  text-decoration: underline;
}
