/* ==========================================================================
   Modern auth screens

   Bootstrap owns the grid, spacing, card, alert, and button primitives here.
   This file only layers the Swyft auth visual treatment over those primitives.
   ========================================================================== */
:root {
  --auth-ink: #111827;
  --auth-ink-hover: #05070c;
  --auth-text: #1f2937;
  --auth-muted: #6b7280;
  --auth-faint: #9ca3af;
  --auth-link: #2563eb;
  --auth-link-hover: #1d4ed8;
  --auth-border: rgba(17, 24, 39, 0.1);
  --auth-border-strong: rgba(17, 24, 39, 0.18);
  --auth-panel: rgba(255, 255, 255, 0.82);
  --auth-page: #f6f5f2;
  --auth-mobile-band: #171923;
  --auth-shadow: 0 24px 70px rgba(17, 24, 39, 0.11);
}

body:has(#kt_login.auth-shell) {
  background: var(--auth-page);
}

#kt_login.auth-shell {
  min-height: 100vh;
  background: var(--auth-page);
  color: var(--auth-text);
  font-family: Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#kt_login.auth-shell .auth-shell__aside {
  width: 100%;
  min-height: 100vh;
  background: var(--auth-page);
}

#kt_login.auth-shell .auth-shell__visual {
  position: relative;
  min-height: 100vh;
  padding: 0;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

#kt_login.auth-shell .auth-shell__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.08);
}

#kt_login.auth-shell .auth-card-wrap {
  display: block;
  flex: 0 1 auto;
  max-width: 480px;
  padding: 0;
}

#kt_login.auth-shell .auth-card {
  border: 1px solid rgba(255, 255, 255, 0.66) !important;
  background: var(--auth-panel);
  box-shadow: var(--auth-shadow) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

#kt_login.auth-shell .auth-card .card-body {
  position: relative;
}

#kt_login.auth-shell .auth-card__brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

#kt_login.auth-shell .auth-card__eyebrow {
  color: var(--auth-muted);
  letter-spacing: 0.08em;
}

#kt_login.auth-shell .auth-card__icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 1px solid var(--auth-border);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--auth-ink);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

#kt_login.auth-shell .auth-card__icon svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#kt_login.auth-shell .auth-card__title {
  color: var(--auth-ink);
  line-height: 1.16;
}

#kt_login.auth-shell .auth-card__subtitle {
  max-width: 340px;
  color: var(--auth-muted) !important;
  font-size: 14px;
  line-height: 1.65;
}

#kt_login.auth-shell .auth-form label {
  margin-bottom: 8px;
  color: var(--auth-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

#kt_login.auth-shell .auth-form .form-group,
#kt_login.auth-shell .auth-form__fields .mb-3,
#kt_login.auth-shell .auth-form__fields p {
  margin-bottom: 0;
}

#kt_login.auth-shell .auth-form .form-control,
#kt_login.auth-shell .auth-form input[type="text"],
#kt_login.auth-shell .auth-form input[type="email"],
#kt_login.auth-shell .auth-form input[type="password"] {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--auth-border);
  border-radius: 14px;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--auth-ink);
  font-size: 14px;
  font-weight: 500;
  box-shadow: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

#kt_login.auth-shell .auth-field-shell {
  position: relative;
}

#kt_login.auth-shell .auth-field-shell .form-control,
#kt_login.auth-shell .auth-field-shell input[type="text"],
#kt_login.auth-shell .auth-field-shell input[type="email"],
#kt_login.auth-shell .auth-field-shell input[type="password"] {
  padding-left: 46px;
  background-image: none !important;
}

#kt_login.auth-shell .auth-field-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  color: var(--auth-muted);
  pointer-events: none;
  transform: translateY(-50%);
}

#kt_login.auth-shell .auth-field-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#kt_login.auth-shell .auth-password-field input[type="password"],
#kt_login.auth-shell .auth-password-field input[type="text"] {
  padding-right: 52px;
}

#kt_login.auth-shell .auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 9px;
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--auth-muted);
  transform: translateY(-50%);
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

#kt_login.auth-shell .auth-password-toggle:hover,
#kt_login.auth-shell .auth-password-toggle:focus {
  border-color: var(--auth-border);
  background: rgba(255, 255, 255, 0.86);
  color: var(--auth-ink);
  outline: none;
}

#kt_login.auth-shell .auth-password-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#kt_login.auth-shell .auth-form .form-control:focus,
#kt_login.auth-shell .auth-form input[type="text"]:focus,
#kt_login.auth-shell .auth-form input[type="email"]:focus,
#kt_login.auth-shell .auth-form input[type="password"]:focus {
  border-color: var(--auth-ink);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.09);
  outline: none;
}

#kt_login.auth-shell .auth-form input:-webkit-autofill,
#kt_login.auth-shell .auth-form input:-webkit-autofill:hover,
#kt_login.auth-shell .auth-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--auth-ink);
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
}

#kt_login.auth-shell .auth-form .form-text,
#kt_login.auth-shell .auth-form .help-block,
#kt_login.auth-shell .auth-form .helptext {
  margin-top: 7px;
  color: var(--auth-faint);
  font-size: 12px;
  line-height: 1.45;
}

#kt_login.auth-shell .auth-form .invalid-feedback,
#kt_login.auth-shell .auth-form .text-danger,
#kt_login.auth-shell .auth-form .errorlist {
  color: #b42318;
  font-size: 12px;
}

#kt_login.auth-shell .auth-form .errorlist {
  padding-left: 18px;
  margin: 8px 0 0;
}

#kt_login.auth-shell .auth-form__meta {
  color: var(--auth-muted);
  font-size: 13px;
}

#kt_login.auth-shell .auth-card a {
  color: var(--auth-ink);
  font-weight: 700;
  text-decoration: none;
}

#kt_login.auth-shell .auth-card a:hover {
  color: var(--auth-ink-hover);
  text-decoration: underline;
}

#kt_login.auth-shell .auth-form__meta a,
#kt_login.auth-shell .kt-login__account a {
  color: var(--auth-link);
  font-weight: 700;
  text-decoration: none;
}

#kt_login.auth-shell .auth-form__meta a:hover,
#kt_login.auth-shell .kt-login__account a:hover {
  color: var(--auth-link-hover);
  text-decoration: underline;
}

#kt_login.auth-shell .auth-btn {
  display: inline-flex;
  height: auto;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding-right: 1rem;
  padding-left: 1rem;
  border: 1px solid var(--auth-ink);
  border-radius: 14px;
  background: #fff;
  color: var(--auth-ink);
  font-size: 14px;
  font-weight: 700;
}

#kt_login.auth-shell .btn-outline-dark.auth-btn {
  --bs-btn-color: var(--auth-ink);
  --bs-btn-bg: #fff;
  --bs-btn-border-color: var(--auth-ink);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--auth-ink);
  --bs-btn-hover-border-color: var(--auth-ink-hover);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--auth-ink-hover);
  --bs-btn-active-border-color: var(--auth-ink-hover);
  --bs-btn-focus-shadow-rgb: 17, 24, 39;
}

#kt_login.auth-shell .auth-btn__icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#kt_login.auth-shell .auth-alert {
  background: rgba(255, 255, 255, 0.72);
  color: var(--auth-text);
  line-height: 1.55;
}

@media (min-width: 992px) {
  #kt_login.auth-shell .auth-shell__aside {
    width: 41.66666667%;
  }

  #kt_login.auth-shell .auth-shell__visual {
    width: 58.33333333%;
  }
}

@media (max-width: 575.98px) {
  body:has(#kt_login.auth-shell) {
    background: #fff;
  }

  #kt_login.auth-shell {
    background: #fff;
  }

  #kt_login.auth-shell .auth-shell__aside {
    align-items: stretch !important;
    justify-content: stretch !important;
    min-height: 100dvh;
    padding: 0 !important;
  }

  #kt_login.auth-shell .auth-card-wrap {
    max-width: none;
    min-height: 100dvh;
  }

  #kt_login.auth-shell .auth-card {
    min-height: 100dvh;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff;
    box-shadow: none !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  #kt_login.auth-shell .auth-card .card-body {
    display: flex;
    min-height: 100dvh;
    flex-direction: column;
    justify-content: flex-start;
    padding: 26px 18px 22px !important;
    overflow: visible;
  }

  #kt_login.auth-shell .auth-card .card-body::before {
    content: "";
    display: block;
    height: 104px;
    margin: -26px -18px 26px;
    border-bottom-right-radius: 34px;
    border-bottom-left-radius: 34px;
    background: var(--auth-mobile-band);
  }

  #kt_login.auth-shell .auth-card__brand {
    display: inline-flex;
    width: 68px;
    height: 68px;
    align-items: center;
    justify-content: center;
    margin: -60px 0 28px !important;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  #kt_login.auth-shell .auth-card__brand img {
    width: 46px;
    height: 46px;
  }

  #kt_login.auth-shell .auth-card__head {
    margin-bottom: 28px !important;
  }

  #kt_login.auth-shell .auth-card__icon {
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    border-radius: 16px;
  }

  #kt_login.auth-shell .auth-card__title {
    font-size: 30px;
    letter-spacing: 0;
  }

  #kt_login.auth-shell .auth-card__subtitle {
    max-width: 280px;
    font-size: 13px;
    line-height: 1.55;
  }

  #kt_login.auth-shell .auth-form__fields {
    gap: 18px !important;
  }

  #kt_login.auth-shell .auth-form .form-control,
  #kt_login.auth-shell .auth-form input[type="text"],
  #kt_login.auth-shell .auth-form input[type="email"],
  #kt_login.auth-shell .auth-form input[type="password"] {
    min-height: 58px;
    border-color: rgba(17, 24, 39, 0.14);
    border-radius: 18px;
    background-color: #f8fafc;
  }

  #kt_login.auth-shell .auth-field-shell .form-control,
  #kt_login.auth-shell .auth-field-shell input[type="text"],
  #kt_login.auth-shell .auth-field-shell input[type="email"],
  #kt_login.auth-shell .auth-field-shell input[type="password"] {
    padding-left: 50px;
  }

  #kt_login.auth-shell .auth-field-icon {
    left: 18px;
  }

  #kt_login.auth-shell .auth-form__meta {
    margin-top: 14px !important;
    margin-bottom: 22px !important;
  }

  #kt_login.auth-shell .auth-btn {
    min-height: 58px;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.1);
  }
}
