/* Modern public auth pages (login/register/reset) without changing the global admin palette. */

:root {
  --auth-primary: #6777ef; /* Stisla primary */
  --auth-ink: #0f172a;
  --auth-muted: #64748b;
  --auth-border: rgba(15, 23, 42, 0.10);
}

/* Layout overrides for the auth shell (loaded only on the login page). */
body {
  /* Education-themed subtle pattern + existing palette gradients */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%236777ef' stroke-opacity='0.14' stroke-width='2'%3E%3Cpath d='M26 56l54-22 54 22-54 22-54-22z'/%3E%3Cpath d='M44 72v20c0 10 18 18 36 18s36-8 36-18V72'/%3E%3Cpath d='M134 56v26'/%3E%3Cpath d='M60 104h40v22H60z'/%3E%3Cpath d='M60 104c6-8 34-8 40 0'/%3E%3Cpath d='M60 126c6-8 34-8 40 0'/%3E%3C/g%3E%3C/svg%3E") repeat,
    radial-gradient(1100px 420px at 20% 0%, rgba(103, 119, 239, 0.20), rgba(255,255,255,0) 60%),
    radial-gradient(900px 500px at 90% 40%, rgba(103, 119, 239, 0.14), rgba(255,255,255,0) 58%),
    #f6f8ff;
}

.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.container.mt-2 {
  margin-top: 0 !important;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Replace the default top logo with an in-card brand for a tighter layout. */
.login-brand {
  display: none;
}

.simple-footer {
  color: var(--auth-muted);
}

.auth-modern {
  max-width: 1100px;
  margin: 0 auto;
}

.auth-modern .auth-card {
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 20px 50px rgba(2, 6, 23, 0.12),
    0 2px 8px rgba(2, 6, 23, 0.06);
}

.auth-modern .auth-aside {
  position: relative;
  color: #fff;
  background: linear-gradient(135deg, var(--auth-primary) 0%, #4453d6 100%);
}

.auth-modern .auth-aside::before,
.auth-modern .auth-aside::after {
  content: "";
  position: absolute;
  inset: -120px -80px auto auto;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.28), rgba(255,255,255,0.00) 60%);
  pointer-events: none;
}

.auth-modern .auth-aside::after {
  inset: auto auto -180px -120px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at 40% 40%, rgba(255,255,255,0.20), rgba(255,255,255,0.00) 62%);
}

.auth-modern .auth-aside-content {
  position: relative;
  z-index: 1;
}

.auth-modern .auth-cta {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.auth-modern .auth-cta .auth-cta-label {
  font-size: 0.92rem;
  opacity: 0.92;
}

.auth-modern .auth-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.16);
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.auth-modern .auth-cta-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.34);
}

.auth-modern .auth-cta-btn .auth-cta-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #fff;
  opacity: 0.9;
}

.auth-modern .auth-title {
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.auth-modern .auth-kicker {
  font-size: 0.95rem;
  opacity: 0.9;
}

.auth-modern .auth-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  opacity: 0.95;
}

.auth-modern .auth-feature .auth-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 20px rgba(2, 6, 23, 0.12);
}

.auth-modern .auth-feature .auth-icon i {
  font-size: 16px;
  opacity: 0.98;
}

.auth-modern .auth-form-wrap {
  background: #fff;
}

.auth-modern .auth-form-title {
  color: var(--auth-ink);
  letter-spacing: -0.01em;
}

.auth-modern .auth-form-subtitle {
  color: var(--auth-muted);
}

.auth-modern .auth-brand {
  text-decoration: none !important;
}

.auth-modern .form-control {
  border-radius: 12px;
  border-color: var(--auth-border);
}

.auth-modern .form-control:focus {
  border-color: rgba(103, 119, 239, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(103, 119, 239, 0.14);
}

.auth-modern .btn-primary {
  border-radius: 12px;
}

.auth-modern .auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--auth-muted);
  font-size: 0.9rem;
}

.auth-modern .auth-divider::before,
.auth-modern .auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(15, 23, 42, 0.10);
}

.auth-modern .btn-social {
  border-radius: 12px;
}

@media (max-width: 991.98px) {
  .auth-modern {
    max-width: 560px;
  }
  .auth-modern .auth-card {
    border-radius: 18px;
  }
}
