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 experience (login / set-password / MFA): full-height split screen
   --------------------------------------------------------------------------- */
:root {
  --oak-bark: #1f3d2b;
  --oak-leaf: #2f6b46;
  --oak-leaf-light: #4f9d6b;
  --oak-acorn: #c08a3e;
  --oak-mist: #f4f7f3;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  background: var(--oak-mist);
}

/* Brand / marketing panel */
.auth-brand {
  position: relative;
  flex: 1 1 50%;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 3.5rem;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(79, 157, 107, 0.55), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(192, 138, 62, 0.35), transparent 55%),
    linear-gradient(150deg, var(--oak-bark) 0%, var(--oak-leaf) 100%);
}

@media (min-width: 992px) {
  .auth-brand { display: flex; }
}

.auth-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

.auth-brand > * { position: relative; z-index: 1; }

.auth-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.auth-logo svg { width: 2.5rem; height: 2.5rem; }

.auth-hero h1 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.auth-hero p {
  font-size: 1.1rem;
  max-width: 32ch;
  color: rgba(255, 255, 255, 0.82);
}

.auth-features {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 0.9rem;
}

.auth-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.92);
}

.auth-features .tick {
  flex: 0 0 1.5rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  color: var(--oak-leaf-light);
  font-weight: 700;
}

.auth-foot { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }

/* Form panel */
.auth-main {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.auth-main-top {
  display: flex;
  justify-content: flex-end;
}

.auth-card {
  width: 100%;
  max-width: 25rem;
  margin: auto;
}

.auth-card .auth-mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1.75rem;
  color: var(--oak-bark);
  font-weight: 600;
  font-size: 1.2rem;
}
.auth-card .auth-mark svg { width: 2rem; height: 2rem; }

.auth-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  color: #1c2722;
  margin-bottom: 0.25rem;
}

.auth-card .auth-sub {
  text-align: center;
  color: #6c7a72;
  margin-bottom: 1.75rem;
}

.auth-card .form-control {
  padding: 0.7rem 0.9rem;
  border-radius: 0.6rem;
}

.auth-card .btn-primary {
  background: var(--oak-leaf);
  border-color: var(--oak-leaf);
  padding: 0.65rem;
  border-radius: 0.6rem;
  font-weight: 600;
}
.auth-card .btn-primary:hover,
.auth-card .btn-primary:focus {
  background: var(--oak-bark);
  border-color: var(--oak-bark);
}

@media (max-width: 991.98px) {
  .auth-card .auth-mark { color: var(--oak-bark); }
}