:root {
  color-scheme: dark;
}

/* Bootstrap-ish class mapping (for crispy/forms + legacy templates) */
.content-section,
.login-box {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  border-radius: 18px;
  padding: 1.5rem;
}

.container {
  width: 100%;
}

.form-group,
.form-check,
.mb-3 {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-size: 0.875rem;
  color: rgba(226, 232, 240, 0.9);
  margin-bottom: 0.35rem;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  border-radius: 14px;
  padding: 0.7rem 0.9rem;
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
}

.form-check-input {
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(2, 6, 23, 0.55);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease,
    box-shadow 140ms ease, color 140ms ease;
  user-select: none;
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.25);
}

.btn-primary,
.btn-success {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.95), rgba(167, 139, 250, 0.95));
  color: #06121e;
}

.btn-outline-info,
.btn-outline-secondary,
.btn-outline-light {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.25);
  color: #e2e8f0;
}

.btn-outline-info:hover,
.btn-outline-secondary:hover,
.btn-outline-light:hover {
  background: rgba(148, 163, 184, 0.18);
  border-color: rgba(148, 163, 184, 0.32);
}

.text-muted {
  color: rgba(148, 163, 184, 0.9) !important;
}

.alert {
  border-radius: 18px;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(15, 23, 42, 0.55);
  color: #e2e8f0;
}

.alert-info {
  border-color: rgba(56, 189, 248, 0.28);
  background: rgba(56, 189, 248, 0.10);
}

.alert-success {
  border-color: rgba(52, 211, 153, 0.28);
  background: rgba(52, 211, 153, 0.10);
}

.alert-danger,
.alert-error {
  border-color: rgba(251, 113, 133, 0.30);
  background: rgba(251, 113, 133, 0.10);
}

a {
  color: rgba(125, 211, 252, 0.95);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.border-top {
  border-top: 1px solid rgba(255, 255, 255, 0.10) !important;
}

.border-bottom {
  border-bottom: 1px solid rgba(255, 255, 255, 0.10) !important;
}

