/* ============================================
   AUTH SCREENS
   ============================================ */

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gray-50) 0%, #e0e7f1 100%);
  padding: 24px;
}

.auth-screen {
  width: 100%;
  display: flex;
  justify-content: center;
}

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

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-header .logo-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 12px;
}

.auth-header h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gray-900);
}

.auth-subtitle {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-top: 6px;
}

.auth-field {
  margin-bottom: 18px;
}

.auth-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.auth-field input,
.auth-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--gray-800);
  background: var(--surface);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-field input:focus,
.auth-field textarea:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-primary-light);
}

.auth-field input::placeholder,
.auth-field textarea::placeholder {
  color: var(--gray-400);
}

.field-hint {
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-top: 4px;
}

.auth-btn {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
}

.auth-btn:active { transform: scale(0.99); }

.primary-btn {
  background: var(--brand-primary);
  color: white;
}

.primary-btn:hover { background: var(--brand-primary-hover); }
.primary-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.secondary-btn {
  background: var(--surface);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

.secondary-btn:hover { background: var(--gray-50); }

.auth-error {
  background: var(--red-light);
  color: var(--red);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 16px;
  border: 1px solid var(--danger-border);
}

.auth-success {
  background: var(--green-light);
  color: var(--green);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 16px;
  border: 1px solid var(--success-bg);
}

.auth-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.auth-divider {
  color: var(--gray-300);
}

.link-btn {
  color: var(--brand-primary);
  font-size: 0.85rem;
  font-weight: 500;
}

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

.auth-browse {
  text-align: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}

.auth-browse .link-btn {
  color: var(--gray-500);
  font-size: 0.83rem;
}

.auth-browse .link-btn:hover {
  color: var(--brand-primary);
}

/* 2026-05-31: expanded trainee operating rules card. Was a single
   paragraph + checkbox; now an itemized list so trainees can't claim
   they didn't see a specific rule. Single master "I agree" check at
   the bottom — Cameron explicitly wants one check to move forward. */
.trainee-rules-card {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
  text-align: left;
}
.trainee-rules-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.trainee-rules-intro {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: #4b5563;
  line-height: 1.45;
}
.trainee-rules-list {
  margin: 0 0 12px;
  padding-left: 20px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.45;
}
.trainee-rules-list li {
  margin-bottom: 8px;
}
.trainee-rules-list li:last-child {
  margin-bottom: 0;
}
.trainee-rules-list strong {
  color: var(--text);
  font-weight: 600;
}
.trainee-rules-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  line-height: 1.4;
  color: var(--text);
}
.trainee-rules-agree input[type="checkbox"] {
  margin-top: 3px;
}
