/* SUP Login Colaborador V7 | refinamento visual pontual */
:root {
  --sup-green: #00965e;
  --sup-green-dark: #00794d;
  --sup-ink: #073f2b;
  --sup-muted: #647487;
}
html,
body.sup-login-page {
  width: 100%;
  min-height: 100%;
  margin: 0 !important;
  padding: 0 !important;
}
body.sup-login-page {
  min-height: 100vh;
  overflow-x: hidden;
  background: #fff !important;
  color: var(--sup-ink);
  font-family: "Segoe UI", Arial, sans-serif;
}
.sup-login-v5 *,
.sup-login-v5 *::before,
.sup-login-v5 *::after {
  box-sizing: border-box;
}
.sup-login-layout {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: #fff;
}

/* Fotografia preservada, com sombra localizada apenas atrás do bloco textual. */
.sup-login-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  color: #fff;
  background: url("../images/icons/fundo login.png") center center/cover
    no-repeat;
}
.sup-visual-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 48% 43% at 22% 43%,
    rgba(0, 35, 28, 0.34) 0%,
    rgba(0, 35, 28, 0.19) 48%,
    rgba(0, 35, 28, 0) 100%
  );
}
.sup-brand {
  position: absolute;
  z-index: 4;
  top: 1%;
  left: 7%;
  width: 150px;
  height: 125px;
  padding: 0;
}
.sup-brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.sup-visual-copy {
  position: absolute;
  z-index: 4;
  top: 38%;
  left: 7.7%;
  width: 43%;
  max-width: 650px;
}
.sup-system-name {
  display: block;
  color: #fff;
}
.sup-system-description {
  display: block;
  color: #fff;
  font-size: clamp(38px, 3.15vw, 49px);
  line-height: 1.08;
  font-weight: 750;
  letter-spacing: -1.5px;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.65),
    0 4px 18px rgba(0, 0, 0, 0.35);
}
.sup-visual-copy p {
  margin: 0;
}
.sup-visual-copy p.sup-unimed-name {
  margin-top: 8px;
  color: #a9e52a;
  font-size: clamp(28px, 2.35vw, 36px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 14px rgba(0, 25, 20, 0.32);
}
.sup-visual-copy p.sup-visual-tagline {
  margin-top: 0;
  color: #fff;
  font-size: clamp(18px, 1.65vw, 25px);
  line-height: 1.38;
  font-weight: 400;
  text-shadow:
    0 2px 7px rgba(0, 0, 0, 0.7),
    0 4px 15px rgba(0, 0, 0, 0.38);
}
.sup-feature-list {
  display: none !important;
}

/* Painel branco com onda ampla e contínua, semelhante à referência enviada. */
.sup-login-access {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  bottom: 0;
  width: 59%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 5.5% 88px 12%;
  overflow: visible;
  background: transparent;
}
.sup-login-access::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(145deg, #fff 0%, #fbfdfc 100%);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M360 0 C270 115 190 235 185 365 C178 500 260 600 230 725 C205 835 125 925 90 1000 L1000 1000 L1000 0 Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M360 0 C270 115 190 235 185 365 C178 500 260 600 230 725 C205 835 125 925 90 1000 L1000 1000 L1000 0 Z'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* Ondas inferiores em camadas, sem o recorte verde no canto superior direito. */
.sup-wave-bottom {
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 115px;
  overflow: hidden;
  pointer-events: none;
}
.sup-wave-bottom::before,
.sup-wave-bottom::after,
.sup-wave-bottom span,
.sup-wave-bottom i {
  content: "";
  position: absolute;
  display: block;
  border-radius: 50%;
}
.sup-wave-bottom::before {
  width: 125%;
  height: 155px;
  left: -12%;
  bottom: -132px;
  background: #d9f2e7;
  transform: rotate(-4deg);
}
.sup-wave-bottom::after {
  width: 92%;
  height: 112px;
  right: -8%;
  bottom: -91px;
  background: #a9e45a;
  transform: rotate(-5deg);
}
.sup-wave-bottom span {
  width: 75%;
  height: 88px;
  right: -10%;
  bottom: -75px;
  background: #72c91e;
  transform: rotate(-7deg);
}
.sup-wave-bottom i {
  width: 58%;
  height: 65px;
  right: -8%;
  bottom: -58px;
  background: #00965e;
  transform: rotate(-8deg);
}

/* Cartão aberto, sem moldura pesada. */
.sup-login-card {
  position: relative;
  z-index: 2;
  width: min(100%, 650px);
  padding: 18px 24px 24px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.sup-access-brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  margin: 0 auto 62px;
  padding-bottom: 24px;
  color: #073f2b;
  text-align: left;
}
.sup-access-brand::after {
  content: "";
  position: absolute;
  left: 3%;
  right: 3%;
  bottom: -12px;
  height: 32px;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 700 42' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='line' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%2378c900'/%3E%3Cstop offset='.52' stop-color='%2300965e'/%3E%3Cstop offset='1' stop-color='%2378c900'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M8 31 C145 4 230 5 335 16 C455 29 560 28 692 5' fill='none' stroke='url(%23line)' stroke-width='4.5' stroke-linecap='round'/%3E%3C/svg%3E")
    center center / 100% 100% no-repeat;
}
.sup-access-brand-acronym {
  color: #073f2b;
  font-size: clamp(54px, 5vw, 76px);
  line-height: 0.9;
  font-weight: 850;
  letter-spacing: -4px;
}
.sup-access-brand-divider {
  display: block;
  width: 6px;
  height: 76px;
  flex: 0 0 6px;
  border-radius: 4px;
  background: #78c900;
}
.sup-access-brand-name {
  color: #073f2b;
  font-size: clamp(23px, 2vw, 31px);
  line-height: 1.08;
  font-weight: 750;
  letter-spacing: -0.8px;
}

.sup-card-heading {
  display: block;
  margin: 0 0 28px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: center;
}
.sup-heading-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  border: 5px solid #fff;
  border-radius: 50%;
  background: #e1f6eb;
  color: #008b55;
  box-shadow: 0 8px 22px rgba(0, 70, 45, 0.09);
  font-size: 31px;
}
.sup-card-heading h1 {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #073f2b !important;
  font-family: "Segoe UI", Arial, sans-serif !important;
  font-size: clamp(32px, 2.7vw, 42px) !important;
  line-height: 1.15 !important;
  font-weight: 750 !important;
  letter-spacing: -1.1px !important;
}
.sup-card-heading p {
  margin: 10px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #647487 !important;
  font-size: 19px !important;
  line-height: 1.35 !important;
}
.sup-login-form {
  width: 100%;
  max-width: none;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.sup-field {
  margin: 0 0 24px !important;
}
.sup-field label {
  display: block;
  margin: 0 0 9px !important;
  color: #174a36;
  font-size: 16px !important;
  line-height: 1.3;
  font-weight: 700;
}
.sup-input-wrap {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 62px;
  border: 1px solid #d8e4e8 !important;
  border-radius: 16px !important;
  background: #fff !important;
  overflow: hidden;
  box-shadow: 0 2px 7px rgba(23, 66, 49, 0.025) !important;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.sup-input-wrap:focus-within {
  border-color: #00965e !important;
  box-shadow: 0 0 0 4px rgba(0, 150, 94, 0.09) !important;
}
.sup-input-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 60px;
  flex: 0 0 58px;
  color: #657687;
  font-size: 20px;
  background: transparent !important;
}
.sup-input-wrap input.form-control {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 60px !important;
  margin: 0 !important;
  padding: 0 12px 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: #fff !important;
  background-color: #fff !important;
  box-shadow: none !important;
  color: #263e4b !important;
  font-family: inherit;
  font-size: 20px !important;
}

.sup-input-wrap input.form-control:-webkit-autofill,
.sup-input-wrap input.form-control:-webkit-autofill:hover,
.sup-input-wrap input.form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: #263e4b !important;
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
  transition: background-color 99999s ease-out 0s;
  font-size: 20px !important;
}
.sup-input-wrap input.form-control::placeholder {
  color: #8997a1;
  opacity: 1;
}
.sup-password-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 60px;
  flex: 0 0 54px;
  margin: 0 !important;
  padding: 0;
  border: 0 !important;
  background: #fff !important;
  color: #71818d;
  font-size: 20px;
  cursor: pointer;
}
.sup-password-toggle:hover,
.sup-password-toggle:focus {
  color: #008b55;
  outline: none;
}
.sup-forgot-row {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  max-width: 100%;
  margin: 0 0 30px !important;
  padding: 0 !important;
  position: relative !important;
  right: auto !important;
  left: auto !important;
  white-space: normal !important;
  overflow: visible !important;
}
.sup-forgot-row a,
#forgot-my-password {
  position: static !important;
  float: none !important;
  display: inline-block !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  box-sizing: border-box !important;
  color: #008b55 !important;
  font-size: 20px !important;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap !important;
}
.sup-forgot-row a:hover,
#forgot-my-password:hover {
  color: #006b43 !important;
  text-decoration: underline;
}
.sup-submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: 100%;
  min-height: 68px;
  margin: 0 !important;
  padding: 14px 22px;
  border: 0 !important;
  border-radius: 17px !important;
  background: linear-gradient(105deg, #00995d, #00794b) !important;
  box-shadow: 0 10px 24px rgba(0, 128, 78, 0.16) !important;
  color: #fff !important;
  font-family: inherit;
  font-size: 22px !important;
  font-weight: 700;
  cursor: pointer;
  transition:
    filter 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.sup-submit-button:hover,
.sup-submit-button:focus {
  filter: brightness(1.04);
  box-shadow: 0 14px 28px rgba(0, 128, 78, 0.22) !important;
  transform: translateY(-1px);
  outline: none;
}
.sup-submit-button .glyphicon {
  font-size: 20px;
}
.sup-login-alert:empty {
  display: none;
}
.sup-login-alert {
  margin: 0 0 14px;
  color: #b42318;
  font-size: 17px;
}
.sup-login-alert.alert {
  padding: 10px 13px;
  border-radius: 10px;
}
.sup-login-footer,
.sup-access-meta {
  display: none !important;
}
.sup-submit-button:disabled {
  opacity: 0.72;
  cursor: wait;
}

@media (max-width: 1200px) and (min-width: 901px) {
  .sup-brand {
    width: 260px;
    height: 110px;
  }
  .sup-visual-copy {
    top: 25%;
  }
  .sup-system-description {
    font-size: clamp(34px, 3.2vw, 43px);
  }
  .sup-visual-copy p.sup-visual-tagline {
    font-size: 19px;
  }
  .sup-login-access {
    width: 61%;
    padding-left: 12%;
    padding-right: 5%;
  }
  .sup-login-card {
    padding-left: 20px;
    padding-right: 20px;
  }
}
@media (max-height: 850px) and (min-width: 901px) {
  .sup-login-access {
    padding-top: 28px;
    padding-bottom: 55px;
  }
  .sup-access-brand {
    margin-bottom: 24px;
  }
  .sup-access-brand-acronym {
    font-size: 58px;
  }
  .sup-access-brand-divider {
    height: 60px;
  }
  .sup-access-brand-name {
    font-size: 24px;
  }
  .sup-heading-icon {
    width: 66px;
    height: 66px;
    margin-bottom: 12px;
  }
  .sup-card-heading {
    margin-bottom: 25px !important;
  }
  .sup-field {
    margin-bottom: 18px !important;
  }
  .sup-forgot-row {
    margin-bottom: 22px !important;
  }
}
@media (max-width: 900px) {
  .sup-login-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow: hidden;
  }
  .sup-login-visual {
    position: relative;
    inset: auto;
    height: 340px;
    min-height: 340px;
    background-position: center 48%;
  }
  .sup-visual-overlay {
    background: radial-gradient(
      ellipse 65% 58% at 24% 48%,
      rgba(0, 35, 28, 0.28),
      rgba(0, 35, 28, 0) 100%
    );
  }
  .sup-brand {
    top: 20px;
    left: 24px;
    width: 220px;
    height: 90px;
  }
  .sup-visual-copy {
    top: 185px;
    left: 28px;
    width: 80%;
  }
  .sup-visual-copy p.sup-visual-tagline {
    margin-top: 12px;
    font-size: 16px;
  }
  .sup-login-access {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    min-height: 560px;
    margin-top: 0;
    padding: 38px 24px 100px;
    clip-path: none;
    background: #fbfdfc;
  }
  .sup-login-access::before {
    display: none;
  }
  .sup-login-card {
    width: min(100%, 620px);
    margin: 0 auto;
    padding: 18px 30px 28px;
  }
  .sup-wave-bottom {
    height: 100px;
  }
}
@media (max-width: 560px) {
  .sup-login-visual {
    height: 285px;
    min-height: 285px;
    background-position: 54% center;
  }
  .sup-brand {
    top: 21px;
    left: 225px;
    width: 150px;
    height: 74px;
  }
  .sup-visual-copy {
    top: 150px;
    left: 20px;
    width: 90%;
  }
  .sup-visual-copy p.sup-visual-tagline {
    margin-top: 9px;
    font-size: 14px;
    line-height: 1.25;
  }
  .sup-login-access {
    min-height: 540px;
    padding: 30px 14px 95px;
  }
  .sup-login-card {
    padding: 15px 15px 24px;
  }
  .sup-heading-icon {
    width: 62px;
    height: 62px;
    margin-bottom: 12px;
    font-size: 25px;
  }
  .sup-access-brand {
    gap: 12px;
    margin-bottom: 52px;
    padding-bottom: 18px;
  }
  .sup-access-brand::after {
    left: 2%;
    right: 2%;
    bottom: -9px;
    height: 25px;
  }
  .sup-access-brand-acronym {
    font-size: 50px;
    letter-spacing: -3px;
  }
  .sup-access-brand-divider {
    width: 4px;
    height: 52px;
    flex-basis: 4px;
  }
  .sup-access-brand-name {
    font-size: 20px;
  }
  .sup-card-heading {
    margin-bottom: 26px !important;
  }
  .sup-card-heading h1 {
    font-size: 27px !important;
  }
  .sup-card-heading p {
    font-size: 15px !important;
  }
  .sup-field {
    margin-bottom: 18px !important;
  }
  .sup-field label {
    font-size: 15px !important;
  }
  .sup-input-wrap {
    min-height: 56px;
    border-radius: 14px !important;
  }
  .sup-input-icon,
  .sup-password-toggle {
    height: 54px;
  }
  .sup-input-wrap input.form-control {
    height: 54px !important;
    font-size: 16px !important;
  }
  .sup-forgot-row {
    margin-bottom: 23px !important;
  }
  .sup-forgot-row a,
  #forgot-my-password {
    font-size: 15px !important;
  }
  .sup-submit-button {
    min-height: 58px;
    border-radius: 15px !important;
    font-size: 19px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sup-login-v5 *,
  .sup-login-v5 *::before,
  .sup-login-v5 *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 380px) {
  .sup-access-brand {
    gap: 9px;
  }
  .sup-access-brand::after {
    bottom: -7px;
    height: 21px;
  }
  .sup-access-brand-acronym {
    font-size: 44px;
  }
  .sup-access-brand-name {
    font-size: 17px;
  }
}

/* Desktop com pouca altura disponível: composição ainda mais compacta em zoom 100%.
   A regra é baseada no tamanho da janela, não no navegador, para manter
   o mesmo comportamento em Edge, Chrome e Firefox. */
@media screen and (min-width: 901px) and (max-height: 900px) {
  .sup-login-card {
    width: min(100%, 650px);
    transform: scale(0.7);
    transform-origin: center center;
  }
}

@media screen and (min-width: 901px) and (max-height: 720px) {
  .sup-login-card {
    transform: scale(0.62);
  }
}
