/*
  QualiLeite — Login moderno
  Carregar depois de styles.css.
*/

:root {
  --login-blue-950: #062f61;
  --login-blue-900: #07417f;
  --login-blue-800: #0759ac;
  --login-blue-700: #0874d1;
  --login-blue-600: #168be0;
  --login-blue-100: #e8f5ff;
  --login-blue-50: #f5fbff;
  --login-text: #153859;
  --login-muted: #70859b;
  --login-border: #cfe0ee;
  --login-white: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body.login-modern-body {
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 100%;
  margin: 0;
}

body.login-modern-body {
  overflow: hidden;
  background: #f4f9fd;
  color: var(--login-text);
}

.login-modern-page {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(390px, 44%) minmax(470px, 56%);
  overflow: hidden;
}

.login-brand-panel {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 56px 58px 36px;
  background:
    radial-gradient(
      circle at 18% 14%,
      rgba(255, 255, 255, .22),
      transparent 27%
    ),
    linear-gradient(
      145deg,
      #053d78 0%,
      #086fc2 48%,
      #25a6db 100%
    );
  color: #fff;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.login-brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: .28;
  background-image:
    linear-gradient(
      rgba(255,255,255,.12) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255,255,255,.12) 1px,
      transparent 1px
    );
  background-size: 46px 46px;
  mask-image: linear-gradient(
    to bottom,
    transparent,
    #000 12%,
    #000 70%,
    transparent
  );
}

.brand-orb {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(2px);
}

.brand-orb-one {
  width: 330px;
  height: 330px;
  top: -155px;
  right: -110px;
  background: rgba(151, 230, 255, .24);
}

.brand-orb-two {
  width: 260px;
  height: 260px;
  bottom: -120px;
  left: -95px;
  background: rgba(255, 255, 255, .14);
}

.brand-wave {
  position: absolute;
  z-index: -1;
  left: -12%;
  width: 128%;
  border-radius: 50%;
  transform: rotate(-7deg);
}

.brand-wave-one {
  height: 155px;
  bottom: 70px;
  background: rgba(255, 255, 255, .08);
}

.brand-wave-two {
  height: 120px;
  bottom: 6px;
  background: rgba(176, 239, 255, .12);
}

.brand-content {
  width: min(100%, 520px);
  margin: auto 0;
  animation: brandFadeIn .7s ease-out both;
}

.brand-logo-wrap {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 30px;

  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-logo {
  display: block;
  width: 250px;
  max-width: 100%;
  height: auto;
  max-height: 130px;

  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.brand-badge {
  width: fit-content;
  margin-bottom: 17px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.brand-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #91f5ff;
  box-shadow: 0 0 0 5px rgba(145, 245, 255, .13);
}

.brand-content h1 {
  max-width: 510px;
  margin: 0;
  font-size: clamp(2.1rem, 3.1vw, 3.65rem);
  line-height: 1.06;
  letter-spacing: -.045em;
}

.brand-content h1 span {
  display: block;
  color: #b7efff;
}

.brand-content > p {
  max-width: 500px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, .84);
  font-size: 1rem;
  line-height: 1.7;
}

.brand-features {
  margin-top: 31px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.brand-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, .92);
  font-size: .88rem;
  font-weight: 700;
}

.feature-icon {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 10px;
  background: rgba(255, 255, 255, .1);
  display: grid;
  place-items: center;
}

.feature-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-footer {
  margin-top: auto;
  padding-top: 28px;
  color: rgba(255, 255, 255, .58);
  font-size: .72rem;
}

.login-form-panel {
  min-width: 0;
  min-height: 0;
  padding: 32px 44px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 90% 8%,
      rgba(133, 211, 255, .22),
      transparent 22%
    ),
    linear-gradient(
      145deg,
      #f7fbfe,
      #eef7fd 60%,
      #fafdff
    );
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-modern-card {
  width: min(100%, 510px);
  max-height: calc(100dvh - 48px);
  padding: 40px 42px 28px;
  overflow-y: auto;
  border: 1px solid rgba(185, 211, 234, .82);
  border-radius: 26px;
  background: rgba(255, 255, 255, .96);
  box-shadow:
    0 28px 70px rgba(17, 70, 119, .13),
    0 4px 14px rgba(17, 70, 119, .06);
  scrollbar-width: none;
  animation: cardRiseIn .65s ease-out both;
}

.login-modern-card::-webkit-scrollbar {
  display: none;
}

.mobile-brand {
  display: none;
}





.modern-field {
  margin-bottom: 17px;
}

.modern-field > label {
  display: block;
  margin: 0 0 7px 3px;
  color: #31516f;
  font-size: .78rem;
  font-weight: 850;
}

.modern-input-wrap {
  min-height: 52px;
  border: 1px solid var(--login-border);
  border-radius: 14px;
  background: #fbfdff;
  display: flex;
  align-items: center;
  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}

.modern-input-wrap:focus-within {
  border-color: #2b8fe1;
  background: #fff;
  box-shadow:
    0 0 0 4px rgba(43, 143, 225, .11),
    0 8px 20px rgba(43, 143, 225, .07);
}

.input-icon {
  width: 48px;
  flex: 0 0 48px;
  color: #6a8aa8;
  display: grid;
  place-items: center;
}

.input-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.modern-input-wrap input {
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0 13px 0 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #163b60;
  font: inherit;
  font-size: .9rem;
}

.modern-input-wrap input::placeholder {
  color: #9aaabd;
}

.password-toggle-modern {
  width: 47px;
  height: 47px;
  flex: 0 0 47px;
  padding: 0;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #7089a2;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.password-toggle-modern:hover {
  background: #edf6ff;
  color: #086bc1;
}

.password-toggle-modern svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  grid-area: 1 / 1;
}

.password-toggle-modern .eye-closed {
  display: none;
}

.password-toggle-modern.password-visible .eye-open {
  display: none;
}

.password-toggle-modern.password-visible .eye-closed {
  display: block;
}

.login-modern-options {
  margin: 2px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.remember-modern {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4c6681;
  font-size: .8rem;
  cursor: pointer;
  user-select: none;
}

.remember-modern input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkmark-modern {
  width: 19px;
  height: 19px;
  border: 1px solid #b7ccde;
  border-radius: 6px;
  background: #fff;
  color: #fff;
  display: grid;
  place-items: center;
  transition: .18s ease;
}

.checkmark-modern svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}

.remember-modern input:checked + .checkmark-modern {
  border-color: #0c76ce;
  background: #0c76ce;
  box-shadow: 0 0 0 3px rgba(12, 118, 206, .1);
}

.remember-modern input:checked + .checkmark-modern svg {
  opacity: 1;
}

.login-modern-options a {
  color: #0b70c7;
  font-size: .8rem;
  font-weight: 800;
  text-decoration: none;
}

.login-modern-options a:hover {
  text-decoration: underline;
}

.login-submit-button {
  width: 100%;
  min-height: 53px;
  padding: 0 19px;
  border: 0;
  border-radius: 14px;
  background:
    linear-gradient(
      105deg,
      #0759ae,
      #087bd3 58%,
      #19a1df
    );
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  font-size: .9rem;
  font-weight: 900;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow:
    0 12px 24px rgba(8, 107, 190, .22),
    inset 0 1px rgba(255,255,255,.18);
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    filter .18s ease;
}

.login-submit-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow:
    0 16px 28px rgba(8, 107, 190, .28),
    inset 0 1px rgba(255,255,255,.18);
}

.login-submit-button:active {
  transform: translateY(0);
}

.login-submit-button:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
}

.login-submit-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease;
}

.login-submit-button:hover svg {
  transform: translateX(3px);
}

.login-modern-message {
  min-height: 21px;
  margin: 9px 0 0;
  text-align: center;
  font-size: .78rem;
}

.login-security-note {
  margin-top: 9px;
  padding: 11px 12px;
  border: 1px solid #d9e8f4;
  border-radius: 12px;
  background: #f7fbff;
  color: #6e8398;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  line-height: 1.4;
}

.login-security-note svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: #4d8ec7;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-modern-footer {
  margin-top: 19px;
  color: #8a9bae;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: .68rem;
}

.footer-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #b8c8d7;
}

@keyframes cardRiseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

@keyframes brandFadeIn {
  from {
    opacity: 0;
    transform: translateX(-14px);
  }

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

/* Tablet e celular: formulário ocupa toda a tela. */
@media (max-width: 900px) {
  body.login-modern-body {
    overflow: hidden;
  }

  .login-modern-page {
    display: block;
    background:
      radial-gradient(
        circle at 12% 8%,
        rgba(98, 196, 255, .24),
        transparent 24%
      ),
      linear-gradient(
        145deg,
        #eaf6ff,
        #f7fbfe 55%,
        #e6f5ff
      );
  }

  .login-brand-panel {
    display: none;
  }

  .login-form-panel {
    width: 100%;
    height: 100%;
    padding:
      max(14px, env(safe-area-inset-top))
      max(16px, env(safe-area-inset-right))
      max(14px, env(safe-area-inset-bottom))
      max(16px, env(safe-area-inset-left));
    background: transparent;
  }

  .login-modern-card {
    width: min(100%, 580px);
    max-height:
      calc(
        100dvh -
        max(28px, env(safe-area-inset-top)) -
        max(28px, env(safe-area-inset-bottom))
      );
  }

 .mobile-brand {
  display: none;
  justify-content: center;
  margin-bottom: 21px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.mobile-brand img {
  width: min(230px, 70%);
  max-height: 95px;
  height: auto;
  object-fit: contain;
  background: transparent;
  border: 0;
  box-shadow: none;
}
}

/* Celular em modo paisagem. */
@media (orientation: landscape) and (max-height: 600px) {
  .portrait-warning {
    display: none !important;
  }

  .login-form-panel {
    padding:
      max(7px, env(safe-area-inset-top))
      max(13px, env(safe-area-inset-right))
      max(7px, env(safe-area-inset-bottom))
      max(13px, env(safe-area-inset-left));
  }

  .login-modern-card {
    width: min(720px, 100%);
    max-height:
      calc(
        100dvh -
        max(14px, env(safe-area-inset-top)) -
        max(14px, env(safe-area-inset-bottom))
      );
    padding: 14px 25px 11px;
    border-radius: 19px;
  }

  .mobile-brand {
    margin-bottom: 6px;
  }

  .mobile-brand img {
    width: 145px;
    max-height: 43px;
  }




 .login-heading h2 {
  margin: 0;
  color: #0b315d;
  font-size: 1.72rem;
  letter-spacing: -.025em;
}

.login-heading p {
  margin: 6px 0 0;
  color: var(--login-muted);
  font-size: .88rem;
}

  .modern-field {
    margin-bottom: 8px;
  }

  .modern-field > label {
    margin-bottom: 4px;
    font-size: .7rem;
  }

  .modern-input-wrap {
    min-height: 42px;
    border-radius: 11px;
  }

  .modern-input-wrap input {
    height: 40px;
    font-size: .82rem;
  }

  .input-icon {
    width: 42px;
    flex-basis: 42px;
  }

  .input-icon svg {
    width: 18px;
    height: 18px;
  }

  .password-toggle-modern {
    width: 41px;
    height: 39px;
    flex-basis: 41px;
  }

  .login-modern-options {
    margin: 1px 0 8px;
  }

  .login-submit-button {
    min-height: 42px;
    border-radius: 11px;
    font-size: .8rem;
  }

  .login-modern-message {
    min-height: 15px;
    margin-top: 4px;
    font-size: .7rem;
  }

  .login-security-note {
    display: none;
  }

  .login-modern-footer {
    margin-top: 3px;
    font-size: .6rem;
  }
}

@media (orientation: landscape) and (max-height: 410px) {
  .login-form-panel {
    align-items: stretch;
  }

  .login-modern-card {
    align-self: center;
    padding-top: 9px;
    padding-bottom: 7px;
  }

  .mobile-brand {
    display: none;
  }

.login-heading {
  margin-bottom: 28px;
  display: block;
}

  .login-modern-footer {
    display: none;
  }
}

@media (max-width: 540px) {
  .login-modern-card {
    padding-left: 22px;
    padding-right: 22px;
    border-radius: 21px;
  }

  .login-modern-options {
    align-items: flex-start;
  }
}
