:root {
  --color-bg: #161826;
  --color-surface: #232532;
  --color-text: #e9e9ed;
  --color-text-muted: #9397ab;
  --color-accent: #9184d9;
  --color-accent-2: #a7a1db;
  --color-divider: #3f424d;
  --color-error: #ff8a80;
  --color-success: #6fcf97;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --shadow-md: 0 0 0 1px #595d6c, 0 6px 18px rgba(0, 0, 0, 0.55);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
}

.auth-card {
  width: 100%;
  max-width: 360px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  margin: 1rem;
}

.logo {
  display: block;
  width: 64px;
  height: auto;
  margin: 0 auto 1rem;
}

.auth-card h1 {
  margin-top: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.4rem;
  text-align: center;
  letter-spacing: -0.01em;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-top: 0.9rem;
}

input {
  width: 100%;
  min-height: 40px;
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--color-text);
  caret-color: var(--color-accent);
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
}

input:focus {
  outline: none;
  border-color: var(--color-accent);
}

button {
  margin-top: 1.5rem;
  padding: 0.65rem;
  background: transparent;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-md);
  color: var(--color-accent);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

button:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

.link-button {
  background: none;
  border: none;
  color: var(--color-accent);
  font-weight: 400;
  font-size: 0.85rem;
  padding: 0.25rem 0;
  margin-top: 0.5rem;
  text-decoration: underline;
  cursor: pointer;
}

.link-button:hover {
  background: none;
  color: var(--color-accent-2);
}

.error {
  color: var(--color-error);
  font-size: 0.85rem;
}

.success {
  color: var(--color-success);
}

a {
  color: var(--color-accent);
}

a:hover {
  color: var(--color-accent-2);
}
