/*
 * Before-login auth UI system.
 * Override the variables in this first section to rebrand this auth layout.
 */

:root {
  --auth-brand-primary: #007c89;
  --auth-brand-primary-hover: #005f69;
  --auth-brand-accent: #ffdf00;
  --auth-brand-accent-hover: #f2d300;
  --auth-brand-accent-text: #111827;
  --auth-page-bg-start: #f8fafc;
  --auth-page-bg-end: #eef2f7;
  --auth-card-bg: rgba(255, 255, 255, 0.94);
  --auth-surface: #ffffff;
  --auth-input-bg: #fbfcfe;
  --auth-text: #111827;
  --auth-muted-text: #5b6472;
  --auth-footer-text: #7b8492;
  --auth-label: #374151;
  --auth-secondary-text: #242a33;
  --auth-border: #e6ebf1;
  --auth-soft-border: rgba(15, 23, 42, 0.08);
  --auth-input-border: #d7dee8;
  --auth-button-border: #d8dee8;
  --auth-button-border-hover: #b9c3d0;
  --auth-secondary-hover-bg: #f7f9fc;
  --auth-focus-ring: rgba(0, 124, 137, 0.18);
  --auth-brand-tint: rgba(0, 124, 137, 0.08);
  --auth-accent-glow: rgba(255, 223, 0, 0.18);
  --auth-accent-shadow: rgba(194, 160, 0, 0.28);
  --auth-accent-shadow-hover: rgba(194, 160, 0, 0.34);
  --auth-shadow-soft: rgba(15, 23, 42, 0.08);
  --auth-shadow-card: rgba(15, 23, 42, 0.13);
  --auth-shadow-card-mobile: rgba(15, 23, 42, 0.11);
  --auth-shadow-small: rgba(15, 23, 42, 0.06);
  --auth-radius-card: 8px;
  --auth-radius-control: 6px;
  --auth-transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

/* Layout */

.web-auth-shell.wrapper.custom-bg-light {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: calc(100vh - 118px);
  background:
    radial-gradient(circle at 82% 18%, var(--auth-accent-glow), transparent 32%),
    linear-gradient(135deg, var(--auth-page-bg-start) 0%, var(--auth-page-bg-end) 100%) !important;
}

.web-auth-shell #web {
  position: relative;
  flex: 1 1 48%;
  width: 48%;
  background: transparent;
}

.web-auth-shell #web.custom-body-top {
  padding-top: 0;
}

.web-auth-shell #web.container-fluid {
  padding-left: 0;
  padding-right: 0;
}

.auth-page {
  min-height: 680px;
  height: 100%;
  margin: 0;
  padding: 48px;
}

.auth-card-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Illustration Panel And Logo */

.web-auth-shell #websiteSidebar.website-sidebar {
  position: relative;
  flex: 0 0 52%;
  width: 52%;
  min-height: 680px;
  float: none;
  padding: 0 !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}

.web-auth-shell #websiteSidebar.website-sidebar:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(8, 13, 28, 0.12), rgba(8, 13, 28, 0.02)),
    linear-gradient(0deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.16));
  pointer-events: none;
}

.web-auth-shell .auth-image-logo {
  position: absolute;
  top: 34px;
  left: 34px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
}

.web-auth-shell .auth-image-logo img {
  display: block;
  width: 150px;
  max-width: 36vw;
  height: auto;
}

/* Card */

.auth-card {
  width: 100%;
  max-width: 470px;
  padding: 38px;
  background: var(--auth-card-bg);
  border: 1px solid var(--auth-soft-border);
  border-radius: var(--auth-radius-card);
  box-shadow: 0 24px 70px var(--auth-shadow-card), 0 1px 2px var(--auth-shadow-small);
}

.auth-card-large {
  max-width: 500px;
}

.auth-card-topbar {
  min-height: 34px;
  margin-bottom: 8px;
}

.auth-card .language_dropdown,
.auth-card .auth-language {
  font-size: 14px;
}

.auth-heading {
  margin-bottom: 24px;
}

.website_page.auth-page h1 {
  margin-bottom: 10px;
  color: var(--auth-text);
  font-size: 38px;
  line-height: 44px;
  letter-spacing: 0;
}

.auth-heading p,
.auth-helper-row {
  margin-bottom: 0;
  color: var(--auth-muted-text);
  font-size: 15px;
  line-height: 23px;
}

.auth-helper-row p {
  margin-bottom: 0;
}

.auth-card a {
  color: var(--auth-brand-primary);
  font-weight: 600;
}

.auth-card a:hover {
  color: var(--auth-brand-primary-hover);
  text-decoration: none;
}

/* Buttons */

.auth-action-row {
  margin-bottom: 12px;
}

.auth-secondary-action,
.btn-oauth.auth-oauth-button {
  width: 100%;
  min-height: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: var(--auth-radius-control);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  transition: var(--auth-transition);
}

.auth-secondary-action.btn-secondary {
  gap: 8px;
  color: var(--auth-secondary-text) !important;
  background: var(--auth-surface);
  border: 1px solid var(--auth-button-border);
}

.auth-secondary-action.btn-secondary:hover,
.btn-oauth.auth-oauth-button:hover {
  color: var(--auth-text) !important;
  background: var(--auth-secondary-hover-bg) !important;
  border-color: var(--auth-button-border-hover);
  box-shadow: 0 8px 20px var(--auth-shadow-soft);
}

.btn-oauth.auth-oauth-button {
  color: var(--auth-secondary-text);
  background: var(--auth-surface) !important;
  border: 1px solid var(--auth-button-border);
  cursor: pointer;
  padding: 0 18px;
}

.web-auth-shell .auth-card .auth-submit-button,
.web-auth-shell .auth-card .auth-submit-button.btn,
.web-auth-shell .auth-card .auth-submit-button.btn-primary,
.web-auth-shell .auth-card .auth-submit-button.btn-default,
.web-auth-shell .auth-card .auth-submit-button.bg-dark,
.web-auth-shell .auth-card .auth-submit-button.text-light {
  width: 100% !important;
  min-height: 48px !important;
  height: 48px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 0 18px !important;
  color: var(--auth-brand-accent-text) !important;
  background: var(--auth-brand-accent) !important;
  background-color: var(--auth-brand-accent) !important;
  border: 1px solid var(--auth-brand-accent) !important;
  border-radius: var(--auth-radius-control) !important;
  box-shadow: 0 12px 28px var(--auth-accent-shadow) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-decoration: none !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
  cursor: pointer;
  transition: var(--auth-transition) !important;
}

.web-auth-shell .auth-card .auth-submit-button:hover,
.web-auth-shell .auth-card .auth-submit-button:focus,
.web-auth-shell .auth-card .auth-submit-button.focus,
.web-auth-shell .auth-card .auth-submit-button:active,
.web-auth-shell .auth-card .auth-submit-button:active:focus,
.web-auth-shell .auth-card .auth-submit-button.btn:hover,
.web-auth-shell .auth-card .auth-submit-button.btn:focus,
.web-auth-shell .auth-card .auth-submit-button.btn.focus,
.web-auth-shell .auth-card .auth-submit-button.btn:active,
.web-auth-shell .auth-card .auth-submit-button.btn:active:focus,
.web-auth-shell .auth-card .auth-submit-button.btn-primary:hover,
.web-auth-shell .auth-card .auth-submit-button.btn-primary:focus,
.web-auth-shell .auth-card .auth-submit-button.btn-primary.focus,
.web-auth-shell .auth-card .auth-submit-button.btn-primary:active,
.web-auth-shell .auth-card .auth-submit-button.btn-primary:not(:disabled):not(.disabled):active,
.web-auth-shell .auth-card .auth-submit-button.btn-primary:not(:disabled):not(.disabled):active:focus,
.web-auth-shell .auth-card .auth-submit-button.btn-default:hover,
.web-auth-shell .auth-card .auth-submit-button.btn-default:focus,
.web-auth-shell .auth-card .auth-submit-button.btn-default.focus,
.web-auth-shell .auth-card .auth-submit-button.btn-default:active,
.web-auth-shell .auth-card .auth-submit-button.btn-default:active:focus,
.web-auth-shell .auth-card .auth-submit-button.bg-dark:hover,
.web-auth-shell .auth-card .auth-submit-button.bg-dark:focus,
.web-auth-shell .auth-card .auth-submit-button.bg-dark:active {
  color: var(--auth-brand-accent-text) !important;
  background: var(--auth-brand-accent-hover) !important;
  background-color: var(--auth-brand-accent-hover) !important;
  border-color: var(--auth-brand-accent-hover) !important;
  border-radius: var(--auth-radius-control) !important;
  box-shadow: 0 14px 34px var(--auth-accent-shadow-hover) !important;
  outline: 0 !important;
  text-decoration: none !important;
}

/* Forms */

.auth-form-group {
  margin-bottom: 18px;
}

.auth-card label {
  margin-bottom: 8px;
  color: var(--auth-label);
  font-size: 14px;
  font-weight: 700;
}

.auth-card .form-control {
  height: 50px;
  padding: 12px 15px;
  color: var(--auth-text);
  background: var(--auth-input-bg);
  border: 1px solid var(--auth-input-border);
  border-radius: var(--auth-radius-control);
  font-size: 16px;
  box-shadow: none;
}

.auth-card .form-control:focus {
  background: var(--auth-surface);
  border-color: var(--auth-brand-primary);
  box-shadow: 0 0 0 3px var(--auth-focus-ring);
}

.auth-password-group {
  max-width: none;
  position: relative;
}

.auth-password-group .form-control {
  padding-right: 84px;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 14px;
  z-index: 4;
  transform: translateY(-50%);
}

.auth-password-toggle a {
  color: var(--auth-brand-primary) !important;
  font-size: 14px;
  line-height: 1;
}

.auth-password-toggle a:hover,
.auth-password-toggle a:focus {
  color: var(--auth-brand-primary-hover) !important;
  text-decoration: none;
}

.auth-password-toggle .show-link,
.auth-password-toggle .hide-link {
  background-image: none !important;
  float: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding-left: 0;
  background-position: initial;
  background-size: initial;
}

.auth-password-toggle .show-link:before,
.auth-password-toggle .hide-link:before {
  display: inline-block;
  color: var(--auth-brand-primary);
  font-family: "Font Awesome 5 Free";
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  margin-right: 0;
}

.auth-password-toggle .show-link:before {
  content: "\f06e";
}

.auth-password-toggle .hide-link:before {
  content: "\f070";
}

.auth-password-toggle .show-link:hover:before,
.auth-password-toggle .show-link:focus:before,
.auth-password-toggle .hide-link:hover:before,
.auth-password-toggle .hide-link:focus:before {
  color: var(--auth-brand-primary-hover);
}

/* Helpers And Messages */

.auth-helper-row {
  margin-top: -4px;
  margin-bottom: 22px;
}

.auth-submit-row + .auth-helper-row {
  margin-top: 16px;
}

.auth-submit-row {
  margin-bottom: 0;
}

.auth-divider {
  margin: 20px 0;
  border: 0;
  border-top: 1px solid var(--auth-border);
}

.auth-captcha-wrap {
  display: flex;
  justify-content: center;
  margin: 18px 0 20px;
  max-width: 100%;
  overflow: hidden;
}

.auth-card .alert {
  margin-bottom: 14px;
  border-radius: var(--auth-radius-control);
  font-size: 14px;
}

/* Language Menu */

.auth-language-menu {
  position: absolute;
  top: 0;
  right: 10px;
  z-index: 20;
}

.auth-language-menu .language_dropdown .dropdown {
  position: relative;
}

.auth-language-menu #languageMenuButton {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 0;
  color: var(--auth-brand-primary);
  background: transparent !important;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.auth-language-menu #languageMenuButton:hover,
.auth-language-menu #languageMenuButton:focus {
  color: var(--auth-brand-primary-hover);
  background: transparent !important;
  border-color: transparent;
  box-shadow: none;
  text-decoration: none;
}

.auth-language-menu #languageMenuButton .fa-globe {
  color: inherit;
  font-size: 18px !important;
}

.auth-language-menu #languageMenuButton .language-chevron {
  color: inherit;
  font-size: 12px;
}

.auth-language-menu .language-selected {
  color: inherit;
  line-height: 1;
}

.auth-language-menu .dropdown-menu {
  right: 0;
  left: auto;
  margin-top: 8px;
  border: 1px solid var(--auth-soft-border);
  border-radius: var(--auth-radius-card);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.14);
}

.auth-language-menu .dropdown-menu a.dropdown-item {
  color: var(--auth-brand-primary);
  font-weight: 600;
}

.auth-language-menu .dropdown-menu a.dropdown-item:hover,
.auth-language-menu .dropdown-menu a.dropdown-item:focus {
  color: var(--auth-brand-primary-hover);
  background: var(--auth-brand-tint);
}

/* Footer */

.web-auth-footer.footer {
  margin-bottom: 0 !important;
  background: var(--auth-surface);
  border-top: 1px solid var(--auth-border);
}

.web-auth-footer.footer hr {
  display: none;
}

.web-auth-footer.footer .container {
  max-width: 1120px;
  padding-top: 18px;
  padding-bottom: 14px;
}

.web-auth-footer.footer .nav {
  justify-content: center;
  gap: 4px 14px;
}

.web-auth-footer.footer .nav-link {
  padding: 4px 0;
  color: var(--auth-brand-primary);
  font-weight: 600;
}

.web-auth-footer.footer .nav-link:hover {
  color: var(--auth-brand-primary-hover);
}

.web-auth-footer.footer p {
  margin: 8px 0 0;
  color: var(--auth-footer-text);
}

/* Responsive */

@media (max-width: 1199.98px) {
  .web-auth-shell #websiteSidebar.website-sidebar {
    flex-basis: 48%;
    width: 48%;
  }

  .web-auth-shell #web {
    flex-basis: 52%;
    width: 52%;
  }

  .auth-page {
    padding: 38px 30px;
  }
}

@media (max-width: 991.98px) {
  .web-auth-shell.wrapper.custom-bg-light {
    display: block;
    min-height: 0;
  }

  .web-auth-shell #websiteSidebar.website-sidebar {
    display: none !important;
  }

  .web-auth-shell #web {
    width: 100%;
    flex: none;
  }

  .web-auth-shell #web.custom-body-top {
    padding-top: 0;
  }

  .auth-page {
    min-height: auto;
    padding: 76px 22px 30px;
  }

  .auth-card {
    padding: 30px 26px;
  }
}

@media (max-width: 767.98px) {
  .web-auth-shell.wrapper.custom-bg-light {
    padding-top: 58px;
  }

  .web-auth-shell #websiteSidebar.website-sidebar {
    display: none !important;
  }

  .web-auth-shell .auth-image-logo {
    top: 18px;
    left: 18px;
  }

  .web-auth-shell .auth-image-logo img {
    width: 132px;
    max-width: 48vw;
  }

  .web-auth-shell #web {
    width: 100%;
  }

  .web-auth-shell #web.custom-body-top {
    padding-top: 0;
  }

  .auth-page {
    min-height: auto;
    padding: 72px 16px 30px;
  }

  .auth-language-menu #languageMenuButton {
    min-height: 40px;
    padding: 8px 0;
  }

  .auth-card-section {
    display: block;
  }

  .auth-card {
    max-width: none;
    padding: 26px 20px;
    box-shadow: 0 16px 42px var(--auth-shadow-card-mobile), 0 1px 2px var(--auth-shadow-small);
  }

  .website_page.auth-page h1 {
    font-size: 32px;
    line-height: 38px;
  }

  .auth-secondary-action,
  .btn-oauth.auth-oauth-button,
  .auth-card .form-control {
    min-height: 50px;
    height: 50px;
  }

  .web-auth-footer.footer .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .web-auth-footer.footer .nav {
    align-items: center;
    gap: 2px 12px;
  }
}
