:root {
  --text-main: #111827;
  --text-muted: #6b7280;
}

.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  background-color: transparent;
  font-family: system-ui, -apple-system, sans-serif;
}

.auth-card {
  background: var(--card-background-color);
  border: var(--border-string);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.03);
  width: 100%;
  max-width: 400px;
}

.auth-title {
  text-align: center;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.checkbox-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.btn-primary {
  width: 100%;
  background-color: var(--primary-action-color);
  color: white;
  padding: 0.75rem;
  border: var(--primary-action-border-string);
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--primary-action-border-color);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn-primary:hover {
  background-color: var(--primary-action-highlight-color);
  filter: brightness(1);
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--border-color);
}

.btn-primary:active {
  transform: translateY(4px);
  box-shadow: none;
}

.auth-links {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
}

.auth-links a {
  color: var(--primary-color);
  text-decoration: none;
}

.flash-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.875rem 1.5rem;
  border-radius: 6px;
  border: var(--border-string);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 4px 4px 0 var(--border-color);
  z-index: 1000;
  animation: flash-in 0.2s ease, flash-out 0.3s ease 3s forwards;
  white-space: nowrap;
}

.flash-toast--alert {
  background-color: #fff5f5;
  color: #c53030;
  border-color: #feb2b2;
  box-shadow: 4px 4px 0 #feb2b2;
}

.flash-toast--notice {
  background-color: #f0fff4;
  color: #276749;
  border-color: #9ae6b4;
  box-shadow: 4px 4px 0 #9ae6b4;
}

@keyframes flash-in {
  from { opacity: 0; transform: translateX(-50%) translateY(1rem); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes flash-out {
  from { opacity: 1; }
  to   { opacity: 0; pointer-events: none; }
}
