/* Auth Pages */
.auth-page {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, #0b1a3e 0%, #1a3a7a 40%, #1a73e8 100%);
}

.auth-card {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-header {
  text-align: center;
  padding: 2rem 2rem 0.5rem;
}

.auth-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.auth-header h2 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.auth-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.auth-card form {
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.auth-field label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.auth-field input,
.auth-field select {
  padding: 0.65rem 0.85rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  background: var(--card-bg);
}

.auth-field input:focus,
.auth-field select:focus {
  outline: none;
  border-color: var(--primary);
}

.auth-error {
  color: #c5221f;
  font-size: 0.85rem;
  font-weight: 600;
  min-height: 1.2em;
  text-align: center;
}

.auth-submit {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border-radius: 8px;
  margin-top: 0.25rem;
}

.auth-footer {
  text-align: center;
  padding: 1rem 2rem 1.5rem;
  border-top: 1px solid var(--border);
  background: #f8f9fa;
}

.auth-footer p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Logged-in user display */
.user-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.user-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-signout {
  padding: 0.35rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-signout:hover {
  border-color: #c5221f;
  color: #c5221f;
}

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