:root {
  --bg: #FFFFFF;
  --bg-hover: #F5F5F5;
  --border: #E0E0E0;
  --border-light: #EEEEEE;
  --text: #333333;
  --text-secondary: #666666;
  --text-muted: #999999;
  --accent: #2D7FF9;
  --accent-hover: #1A6CF0;
  --danger: #EF4444;
  --radius: 6px;
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: #FAFAFA;
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
  height: 100vh;
  overflow: hidden;
}

.auth-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: #FAFAFA;
}

.auth-card {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 40px;
  width: 380px;
  text-align: center;
}

.auth-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

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

.auth-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.auth-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
  margin-bottom: 12px;
}

.auth-input:focus { border-color: var(--accent); }

.auth-input.code-input {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 4px;
  padding: 14px;
  text-transform: uppercase;
}

.auth-input.mfa-input {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 8px;
  padding: 14px;
}

.auth-btn {
  width: 100%;
  padding: 10px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
  margin-bottom: 12px;
}

.auth-btn:hover { background: var(--accent-hover); }
.auth-btn:disabled { background: #CCC; cursor: not-allowed; }

.auth-error {
  color: var(--danger);
  font-size: 12px;
  margin-bottom: 12px;
  display: none;
}

.auth-error.visible { display: block; }

.auth-link {
  color: var(--accent);
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
}

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

.auth-loading {
  color: var(--text-muted);
  font-size: 13px;
  padding: 20px;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-bottom: 12px;
}

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

/* --- MFA Section --- */
.mfa-divider {
  display: flex;
  align-items: center;
  margin: 16px 0 12px;
}

.mfa-divider::before,
.mfa-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.mfa-divider span {
  padding: 0 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}
