/* Action's Odds — Auth pages shared styles */
/* Match the MLB red/white/blue theme used in the main dashboard */

:root {
  --primary: #002d72;       /* MLB navy */
  --primary-dark: #001e4d;
  --accent: #bf0d3e;        /* MLB red */
  --bg: #fafbfc;
  --panel: #ffffff;
  --text: #0a1633;
  --text2: #4a5577;
  --text3: #7a8aa5;
  --border: #e2e6ee;
  --border2: #cdd4e3;
  --success: #1a7f3e;
  --error: #c0392b;
  --shadow: 0 4px 20px rgba(0, 30, 80, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 30, 80, 0.12);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #fff 0%, #fff5f6 50%, #f0f4fb 100%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  -webkit-font-smoothing: antialiased;
}

.auth-container {
  width: 100%;
  max-width: 420px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}
.auth-logo-mark {
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary);
  line-height: 1;
}
.auth-logo-mark span { color: var(--accent); }
.auth-logo-sub {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-size: 12px;
  color: var(--text3);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 4px;
}

.auth-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 36px 32px;
}

.auth-title {
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-size: 28px;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 6px;
}
.auth-subtitle {
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 24px;
  line-height: 1.5;
}

.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 11px 14px;
  font-size: 15px;
  font-family: inherit;
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: 8px;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 45, 114, 0.1);
}

.btn-primary {
  width: 100%;
  padding: 13px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: inherit;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
  margin-top: 8px;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.auth-link-row {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text2);
}
.auth-link-row a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.auth-link-row a:hover { text-decoration: underline; }

.auth-divider {
  text-align: center;
  margin: 16px 0;
  font-size: 12px;
  color: var(--text3);
  position: relative;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 38%;
  height: 1px;
  background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.alert {
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.4;
}
.alert-error {
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.3);
  color: var(--error);
}
.alert-success {
  background: rgba(26, 127, 62, 0.08);
  border: 1px solid rgba(26, 127, 62, 0.3);
  color: var(--success);
}
.alert-info {
  background: rgba(0, 45, 114, 0.06);
  border: 1px solid rgba(0, 45, 114, 0.2);
  color: var(--primary);
}

.helper-text {
  font-size: 11px;
  color: var(--text3);
  margin-top: 6px;
  line-height: 1.4;
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: -2px;
  margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.footer-link {
  text-align: center;
  margin-top: 24px;
  font-size: 11px;
  color: var(--text3);
}
.footer-link a {
  color: var(--text2);
  text-decoration: none;
}
.footer-link a:hover { color: var(--primary); }
