@font-face {
  font-family: Inter;
  src: url("/sistema/fonts/inter-ui_regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/sistema/fonts/inter-ui_medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/sistema/fonts/inter-ui_semibold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/sistema/fonts/inter-ui_bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

body.body-portal-login {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Inter, system-ui, sans-serif;
  background: #F6F8FC;
  color: #252745;
}

.portal-login {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

.portal-login-hero {
  position: relative;
  flex: 1 1 56%;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  background-color: #1B1F6B;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 2.4rem 1.85rem;
}

.portal-login-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

.portal-login-hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(18, 22, 86, .72) 0%, rgba(27, 31, 107, .38) 38%, rgba(27, 31, 107, .12) 68%, rgba(27, 31, 107, .04) 100%),
    linear-gradient(180deg, rgba(18, 22, 86, .22) 0%, transparent 32%, transparent 52%, rgba(14, 18, 72, .78) 100%);
  pointer-events: none;
}

.portal-login-hero-wave {
  position: absolute;
  z-index: 1;
  right: -12%;
  bottom: -28%;
  width: min(72%, 620px);
  height: 58%;
  border-radius: 55% 45% 0 0 / 70% 70% 0 0;
  background:
    radial-gradient(ellipse 80% 70% at 55% 70%, rgba(74, 143, 255, .55), transparent 70%),
    linear-gradient(160deg, rgba(46, 90, 210, .35), rgba(27, 31, 107, .15) 55%, transparent);
  filter: blur(1px);
  pointer-events: none;
}

.portal-login-hero-top,
.portal-login-hero-copy,
.portal-login-features {
  position: relative;
  z-index: 2;
}

.portal-login-hero-top {
  display: flex;
  align-items: center;
  gap: .85rem;
  font-weight: 600;
  font-size: .95rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .28);
}

.portal-login-hero-top img {
  display: block;
  height: 28px;
  width: auto;
}

.portal-login-hero-top span {
  opacity: .92;
  padding-left: .85rem;
  border-left: 1px solid rgba(255, 255, 255, .42);
}

.portal-login-hero-copy {
  max-width: 540px;
  margin-top: auto;
  margin-bottom: 1.35rem;
  padding: 0;
}

.portal-login-hero h1 {
  max-width: 11ch;
  margin: 0 0 .9rem;
  font-size: clamp(2.2rem, 3.9vw, 3.4rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .28);
}

.portal-login-hero h1 em {
  font-style: normal;
  color: #8ed6ef;
}

.portal-login-hero p {
  max-width: 36ch;
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  opacity: .96;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .28);
}

.portal-login-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  max-width: 740px;
}

.portal-login-feature {
  background: rgba(16, 20, 78, .52);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 14px;
  min-height: 96px;
  padding: 1rem .6rem;
  text-align: center;
  font-size: .8rem;
  font-weight: 500;
  line-height: 1.25;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}

.portal-login-feature i {
  display: block;
  margin: 0;
  font-size: 1.2rem;
  opacity: .98;
}

.portal-login-panel {
  position: relative;
  flex: 1 1 46%;
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 3.5rem;
  background: #fff;
  overflow-y: auto;
}

.portal-login-card {
  width: 100%;
  max-width: 430px;
}

.portal-login-brand {
  text-align: center;
  margin-bottom: 1.75rem;
}

.portal-login-brand img {
  display: block;
  width: 176px;
  max-width: 100%;
  height: auto;
  margin: 0 auto .65rem;
}

.portal-login-brand span {
  display: block;
  color: #6b7394;
  font-size: .9rem;
  font-weight: 500;
}

.portal-login-card h2 {
  margin: 0 0 .35rem;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #232570;
}

.portal-login-card .lead {
  color: #6b7394;
  margin-bottom: 1.35rem;
  font-size: .95rem;
}

.portal-perfil-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .65rem;
  margin-bottom: 1.25rem;
}

.portal-perfil-btn {
  border: 1.5px solid #d8deef;
  background: #fff;
  border-radius: 14px;
  padding: .85rem .4rem;
  text-align: center;
  color: #6b7394;
  cursor: pointer;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 500;
  transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}

.portal-perfil-btn i {
  display: block;
  margin-bottom: .4rem;
  font-size: 1.15rem;
}

.portal-perfil-btn.is-active {
  border-color: #2E3094;
  color: #2E3094;
  background: #f3f5ff;
  box-shadow: 0 0 0 3px rgba(46, 48, 148, .08);
}

.portal-login-label {
  display: block;
  font-weight: 600;
  margin-bottom: .35rem;
  font-size: .9rem;
}

.portal-login-input {
  position: relative;
  margin-bottom: 1rem;
}

.portal-login-input > .portal-input-icon {
  position: absolute;
  left: .95rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: #8a91ad;
  pointer-events: none;
  font-size: .95rem;
  line-height: 1;
}

.portal-login-input input {
  width: 100%;
  border: 1px solid #d8deef;
  border-radius: 12px;
  padding: .85rem 3rem .85rem 2.45rem;
  outline: none;
  font-family: inherit;
  font-size: .95rem;
  background: #fff;
}

.portal-login-input input:focus {
  border-color: #2E3094;
  box-shadow: 0 0 0 3px rgba(46, 48, 148, .12);
}

.portal-login-input .toggle-password {
  position: absolute;
  right: .45rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8a91ad;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}

.portal-login-input .toggle-password:hover,
.portal-login-input .toggle-password:focus-visible {
  color: #2E3094;
  background: #f3f5ff;
  outline: none;
}

.portal-login-input .toggle-password i {
  pointer-events: none;
  font-size: 1rem;
}

.portal-login-extras {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: .9rem;
}

.portal-login-extras a {
  color: #2E3094;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.portal-login-submit {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: #1B1F6B;
  color: #fff;
  padding: .95rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
}

.portal-login-submit:hover {
  background: #232570;
}

.portal-login-submit:disabled {
  opacity: .7;
}

.portal-login-help {
  text-align: center;
  margin-top: 1.25rem;
  color: #6b7394;
  font-size: .9rem;
}

.portal-login-help a {
  color: #2E3094;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.portal-swal-popup {
  font-family: Inter, system-ui, sans-serif !important;
  border-radius: 18px !important;
}
.portal-swal-confirm {
  border-radius: 10px !important;
  font-weight: 600 !important;
}
.portal-swal-cancel {
  border-radius: 10px !important;
}

@media (max-width: 991.98px) {
  .portal-login {
    flex-direction: column;
  }

  .portal-login-hero {
    min-height: 460px;
    padding: 1.5rem;
  }

  .portal-login-hero-img {
    object-position: 50% 36%;
  }

  .portal-login-hero-wave {
    width: 70%;
    height: 42%;
    right: -18%;
    bottom: -22%;
  }

  .portal-login-hero-copy {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
  }

  .portal-login-hero h1 {
    max-width: 14ch;
  }

  .portal-login-features {
    grid-template-columns: repeat(2, 1fr);
    max-width: none;
  }

  .portal-login-panel {
    min-height: auto;
    padding: 2rem 1.5rem 2.5rem;
  }
}

@media (max-width: 575.98px) {
  .portal-perfil-grid {
    grid-template-columns: 1fr;
  }
}
