/* Default safety */
.logo-light,
.logo-dark {
    display: none;
}

/* Light theme */
:root[data-theme="light"] .logo-light {
    display: inline-block;
}

/* Dark theme */
:root[data-theme="dark"] .logo-dark {
    display: inline-block;
}

:root[data-theme="light"] {
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  font-weight: 600;
}

.theme-toggle-icon {
  font-size: 1rem;
  line-height: 1;
}

:root[data-theme="dark"] body {
  background-color: #0b1120;
  color: #e2e8f0;
}

:root[data-theme="dark"] .navbar {
  background-color: #0f172a !important;
  border-color: rgba(148, 163, 184, 0.3) !important;
}

:root[data-theme="dark"] .navbar .nav-link,
:root[data-theme="dark"] .navbar .navbar-brand {
  color: #e2e8f0 !important;
}

:root[data-theme="dark"] .footer {
  color: #94a3b8;
}

:root[data-theme="dark"] .auth-page {
  background: radial-gradient(circle at top, #0f172a 0%, #0b1120 45%, #020617 100%);
}

:root[data-theme="dark"] .auth-card {
  background: #111827;
  border-color: rgba(148, 163, 184, 0.25);
  box-shadow: 0 25px 50px rgba(2, 6, 23, 0.6);
}

:root[data-theme="dark"] .auth-aside {
  color: #e2e8f0;
}

:root[data-theme="dark"] .auth-aside li {
  color: #cbd5f5;
}

:root[data-theme="dark"] .auth-badge {
  background: rgba(96, 165, 250, 0.2);
  color: #bfdbfe;
}

:root[data-theme="dark"] .auth-form .form-control-lg {
  background-color: #0f172a;
  border-color: #1e293b;
  color: #e2e8f0;
}

:root[data-theme="dark"] .auth-form .form-control-lg::placeholder {
  color: #94a3b8;
}

:root[data-theme="dark"] .auth-form .form-control-lg:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 0.2rem rgba(96, 165, 250, 0.2);
}


html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.auth-page {
  background: radial-gradient(circle at top, #eef2ff 0%, #f8fafc 40%, #ffffff 100%);
}

.auth-page .container {
  max-width: 1100px;
}

.auth-shell {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: center;
  padding: 2.5rem 0 4rem;
}

.auth-card {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.2);
    max-width: 420px; /* ? halve the visible width */
    width: 100%;
    margin: 0 auto;
}

.auth-header h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.auth-form .form-control-lg {
  border-radius: 0.75rem;
  border-color: #e2e8f0;
}

.auth-form .btn {
  border-radius: 0.9rem;
  padding: 0.75rem 1rem;
  font-weight: 600;
}

.auth-aside {
  color: #0f172a;
}

.auth-aside h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.auth-aside ul {
  padding-left: 1.2rem;
}

.auth-aside li {
  margin-bottom: 0.6rem;
  color: #475569;
}
