:root {
  --primary:     #075557;
  --secondary:   #009999;
  --bg:          #f0f5f5;
  --surface:     #ffffff;
  --text:        #0d1117;
  --muted:       #57606a;
  --border:      #d0dede;
  --error:       #c01528;
  --radius-card: 12px;
  --radius-input: 7px;
  --shadow-card: 0 4px 24px rgba(7, 85, 87, 0.10);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  font-family: 'Inter', sans-serif;
  padding: 24px;
}

.auth-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 40px;
  width: 100%;
  max-width: 420px;
}

.auth-card--wide {
  max-width: 560px;
}

.auth-logo {
  height: 36px;
  display: block;
  margin: 0 auto 24px;
}

.auth-title {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 28px;
}

.form-field {
  margin-bottom: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 5px;
}

.form-label .req {
  color: var(--error);
}

.form-input,
.form-select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(7, 85, 87, 0.12);
}

.form-input.has-error,
.form-select.has-error {
  border-color: var(--error);
}

.form-error {
  display: block;
  font-size: 0.75rem;
  color: var(--error);
  margin-top: 4px;
}

.form-error.hidden {
  display: none !important;
}

.btn-primary {
  width: 100%;
  padding: 10px 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-input);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s;
  margin-top: 8px;
}

.btn-primary:hover:not(:disabled) {
  background: var(--secondary);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-footer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 28px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  animation: spin 0.7s linear infinite;
}

.hidden {
  display: none !important;
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .auth-card {
    padding: 24px;
  }
}
