/* Auth Portal - Simple Dark Theme */
.mb-3 { margin-bottom: 1rem; }
label { display: block; margin-bottom: 0.5rem; color: var(--auth-text-muted); font-size: 0.875rem; }
.error-msg { color: #ef4444; font-size: 0.875rem; margin-top: 1rem; }

/* Auth Portal - Modern Dark Theme */

:root {
  --auth-bg: #0f0f12;
  --auth-surface: #1a1a1f;
  --auth-surface-hover: #242429;
  --auth-border: #2d2d35;
  --auth-text: #e4e4e7;
  --auth-text-muted: #a1a1aa;
  --auth-accent: #6366f1;
  --auth-accent-hover: #818cf8;
  --auth-success: #22c55e;
  --auth-input-bg: #18181b;
  --auth-radius: 12px;
  --auth-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

body {
  background: var(--auth-bg) !important;
  color: var(--auth-text) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

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

.card {
  background: var(--auth-surface) !important;
  border: 1px solid var(--auth-border) !important;
  border-radius: var(--auth-radius) !important;
  box-shadow: var(--auth-shadow) !important;
  padding: 2rem !important;
}

.card-body {
  padding: 0 !important;
}

.card-title,
h1, h2, h3 {
  color: var(--auth-text) !important;
  font-weight: 600 !important;
  margin-bottom: 1.5rem !important;
}

.logo {
  margin-bottom: 1rem !important;
  max-height: 48px !important;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="password"] {
  background: var(--auth-input-bg) !important;
  border: 1px solid var(--auth-border) !important;
  border-radius: 8px !important;
  color: var(--auth-text) !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  width: 100% !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}

.form-control:focus,
input:focus {
  outline: none !important;
  border-color: var(--auth-accent) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2) !important;
}

.form-control::placeholder {
  color: var(--auth-text-muted) !important;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a1a1aa' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem !important;
}

.btn {
  border-radius: 8px !important;
  padding: 0.75rem 1.5rem !important;
  font-weight: 500 !important;
  transition: all 0.2s !important;
  border: none !important;
  cursor: pointer !important;
}

.btn-primary {
  background: var(--auth-accent) !important;
  color: white !important;
}

.btn-primary:hover {
  background: var(--auth-accent-hover) !important;
  transform: translateY(-1px);
}

.btn-secondary,
.btn-outline {
  background: transparent !important;
  color: var(--auth-text-muted) !important;
  border: 1px solid var(--auth-border) !important;
}

.btn-secondary:hover,
.btn-outline:hover {
  background: var(--auth-surface-hover) !important;
  color: var(--auth-text) !important;
  border-color: var(--auth-text-muted) !important;
}

a {
  color: var(--auth-accent) !important;
  text-decoration: none !important;
}

a:hover {
  color: var(--auth-accent-hover) !important;
  text-decoration: underline !important;
}

.text-muted,
small {
  color: var(--auth-text-muted) !important;
}

/* Portal links (post-login) */
.list-group-item,
.private-link {
  background: var(--auth-surface) !important;
  border: 1px solid var(--auth-border) !important;
  border-radius: 8px !important;
  color: var(--auth-text) !important;
  padding: 1rem !important;
  margin-bottom: 0.5rem !important;
  transition: all 0.2s !important;
}

.list-group-item:hover,
.private-link:hover {
  background: var(--auth-surface-hover) !important;
  border-color: var(--auth-accent) !important;
  transform: translateX(4px);
}

/* Messages */
.alert {
  border-radius: 8px !important;
  padding: 1rem !important;
}

.alert-success {
  background: rgba(34, 197, 94, 0.15) !important;
  border: 1px solid var(--auth-success) !important;
  color: var(--auth-success) !important;
}
