@import url("./youloto_design_tokens.css");

html {
  min-height: 100%;
  background: #06164a var(--login-bg, url("/static/img/login-bg-youloto.png")) center / cover no-repeat fixed;
}

body.login-page,
body.jazzmin-login-page {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: clamp(12px, 2.4vh, 24px);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #10213a;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: transparent !important;
}

body.login-page::before,
body.jazzmin-login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(4, 12, 55, 0.64), rgba(6, 22, 74, 0.26) 50%, rgba(4, 12, 55, 0.7)),
    radial-gradient(circle at 86% 10%, rgba(19, 216, 255, 0.17), transparent 29%),
    var(--login-bg, url("/static/img/login-bg-youloto.png")) center / cover no-repeat;
}

body.login-page > *,
body.jazzmin-login-page > * {
  position: relative;
  z-index: 1;
}

body.login-page .login-logo,
body.jazzmin-login-page .login-logo {
  display: none !important;
}

body.login-page .skip-links,
body.login-page .skip-link,
body.login-page .skip-to-content-link,
body.jazzmin-login-page .skip-links,
body.jazzmin-login-page .skip-link,
body.jazzmin-login-page .skip-to-content-link {
  display: none !important;
}

body.login-page .login-box,
body.jazzmin-login-page .login-box {
  width: min(440px, calc(100vw - 24px)) !important;
  margin: 0 !important;
  animation: yl-login-enter 0.3s ease-out both;
}

body.login-page .login-box .card,
body.jazzmin-login-page .login-box .card {
  margin: 0 !important;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.34) !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 30px 86px rgba(2, 8, 40, 0.46) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.login-page .login-card-body,
body.jazzmin-login-page .login-card-body {
  padding: 0 24px 24px !important;
  overflow: visible;
  border-radius: 24px !important;
  background: transparent !important;
  color: #10213a !important;
}

.youloto-login-topbar {
  min-height: 70px;
  margin: 0 -24px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  color: #fff;
  border-bottom: 4px solid #13d8ff;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(100deg, #06164a, #0b3bbe 58%, #147dff);
  box-shadow: inset 0 -1px rgba(255, 255, 255, 0.1);
}

.youloto-login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.youloto-login-brand img {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.25);
}

.youloto-login-brand span,
.youloto-login-brand strong,
.youloto-login-brand small {
  display: block;
}

.youloto-login-brand strong {
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.youloto-login-brand small {
  margin-top: 2px;
  color: #d9f8ff;
  font-size: 0.64rem;
  white-space: nowrap;
}

.youloto-login-content {
  padding-top: 22px;
}

.youloto-login-heading {
  margin-bottom: 20px;
  text-align: center;
}

.youloto-login-heading p {
  margin: 0;
  color: #0b5ec7;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.youloto-login-heading h1 {
  margin: 0.3rem 0;
  color: #06164a;
  font-size: 1.55rem;
  font-weight: 850;
}

.youloto-login-heading span {
  color: #66738a;
  font-size: 0.88rem;
}

.youloto-login-field {
  margin-bottom: 14px;
}

body.login-page .youloto-login-label,
body.jazzmin-login-page .youloto-login-label {
  display: block;
  margin-bottom: 6px;
  color: #283b59 !important;
  font-size: 0.84rem;
  font-weight: 750;
}

.youloto-login-form .input-group {
  min-height: 46px;
  overflow: hidden;
  border: 1px solid #d9e3f0;
  border-radius: 13px;
  background: #fff;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.youloto-login-form .input-group:focus-within {
  border-color: #147dff;
  box-shadow: 0 0 0 3px rgba(20, 125, 255, 0.14);
}

.youloto-login-form .input-group-text {
  width: 46px;
  border: 0 !important;
  justify-content: center;
  color: #66738a !important;
  background: #f7f9fc !important;
}

.youloto-login-form .form-control {
  height: 46px !important;
  border: 0 !important;
  color: #10213a !important;
  background: #fff !important;
  box-shadow: none !important;
}

.youloto-login-form .form-control::placeholder {
  color: #8a96aa;
}

.youloto-password-toggle {
  width: 42px;
  min-width: 42px;
  border: 0;
  border-radius: 8px;
  color: #66738a;
  background: transparent;
  cursor: pointer;
}

.youloto-password-toggle:hover,
.youloto-password-toggle:focus-visible {
  color: #0b5ec7;
  background: #eef6ff;
  outline: 2px solid rgba(20, 125, 255, 0.2);
}

.youloto-login-help {
  margin: -2px 0 14px;
  text-align: right;
}

.youloto-login-help a {
  color: #0b3bbe;
  font-size: 0.8rem;
  font-weight: 750;
}

.youloto-login-submit {
  height: 46px;
  border: 0 !important;
  border-radius: 13px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #fff !important;
  background: linear-gradient(100deg, #0b3bbe, #147dff) !important;
  box-shadow: 0 13px 27px rgba(11, 59, 190, 0.27);
  font-weight: 800 !important;
  transition: transform 0.18s, box-shadow 0.18s;
}

.youloto-login-submit:hover,
.youloto-login-submit:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 17px 32px rgba(11, 59, 190, 0.34);
  outline: 3px solid rgba(19, 216, 255, 0.3);
}

.youloto-login-alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: 11px;
  color: #991b1b;
  background: #fff1f2;
  font-size: 0.82rem;
}

.youloto-login-alert i {
  margin-top: 2px;
}

.youloto-login-field .errorlist {
  margin: 5px 0 0;
  padding: 0;
  list-style: none;
  color: #b91c1c;
  font-size: 0.75rem;
}

.youloto-login-security {
  margin: 18px 0 0;
  color: #66738a;
  font-size: 0.72rem;
  text-align: center;
}

.youloto-login-security i {
  color: #0b5ec7;
}

@keyframes yl-login-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  body.login-page,
  body.jazzmin-login-page {
    padding: 10px !important;
  }

  body.login-page .login-box,
  body.jazzmin-login-page .login-box {
    width: 100% !important;
  }

  body.login-page .login-card-body,
  body.jazzmin-login-page .login-card-body {
    padding: 0 18px 20px !important;
  }

  .youloto-login-topbar {
    margin: 0 -18px;
    padding: 7px 12px;
  }

  .youloto-login-brand img {
    width: 43px;
    height: 43px;
  }

  .youloto-login-brand small {
    display: none;
  }
}

@media (max-height: 760px) and (min-width: 600px) {
  body.login-page,
  body.jazzmin-login-page {
    padding: 10px !important;
  }

  .youloto-login-topbar {
    min-height: 62px;
  }

  .youloto-login-brand img {
    width: 42px;
    height: 42px;
  }

  .youloto-login-content {
    padding-top: 15px;
  }

  .youloto-login-heading {
    margin-bottom: 13px;
  }

  .youloto-login-field {
    margin-bottom: 10px;
  }

  .youloto-login-security {
    margin-top: 11px;
  }
}

@media (max-height: 620px) {
  body.login-page,
  body.jazzmin-login-page {
    place-items: start center !important;
    overflow-y: auto;
    padding-block: 12px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.login-page .login-box,
  body.jazzmin-login-page .login-box {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
