*,
*::before,
*::after{
  box-sizing: border-box;
}

html, body{
  height: 100%;
}

body{
  margin: 0;
  overflow-x: hidden;
}

/* --------- CARD principal --------- */
.login-page{
  width: min(1600px, calc(100vw - 48px));
  height: calc(100vh - 48px);
  margin: 24px auto;

  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;

  /* sombra mais “enterprise” (menos dramática) */
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.08),
    0 2px 8px rgba(15, 23, 42, 0.06);

  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

/* =========================================================
   COLUNA ESQUERDA — HERO + CAROUSEL (mais sóbrio)
   ========================================================= */
.login-left{
  background: linear-gradient(135deg, var(--primary));
  color: #fff;
  padding: clamp(28px, 4vw, 56px);
  position: relative;
  overflow: hidden;
}

/* decoração de fundo (mais discreta) */
.login-left::before,
.login-left::after{
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  pointer-events: none;
}
.login-left::before{
  width: 520px;
  height: 520px;
  top: -220px;
  left: -220px;
}
.login-left::after{
  width: 720px;
  height: 720px;
  bottom: -340px;
  right: -380px;
  background: rgba(255,255,255,.06);
}

.hero{
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title{
  font-weight: 900;
  margin: 0 0 10px;
  line-height: 1.15;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  letter-spacing: -0.01em;
}

.hero-subtitle{
  margin: 0 0 20px;
  opacity: .9;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
}

/* caixa do carrossel (mais “glass” e organizado) */
.hero-mock{
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  padding: 18px;
  margin-top: 18px;
}

.hero-slide{
  text-align: center;
}

.hero-shot{
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #fff;

  /* sombra mais corporativa */
  box-shadow:
    0 10px 25px rgba(0,0,0,.18);
}

.hero-copy{
  margin-top: 14px;
}

.hero-copy-title{
  margin: 0 0 6px;
  font-weight: 900;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.hero-copy-text{
  margin: 0;
  opacity: .88;
  font-size: .95rem;
  line-height: 1.35rem;
}

/* indicadores embaixo (tira absolute) */
.hero-indicators.carousel-indicators{
  position: static;
  margin: 0;
}

.hero-controls{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 14px;
}

/* setas mais discretas */
.hero-nav{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .06s ease;
}
.hero-nav:hover{
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.28);
}
.hero-nav:active{
  transform: scale(0.98);
}

/* bolinhas */
.hero-indicators.carousel-indicators [data-bs-target]{
  width: 7px;
  height: 7px;
  border-radius: 999px;
  margin: 0 6px;
  border: 0;
  background-color: rgba(255,255,255,.35);
  opacity: 1;
}
.hero-indicators.carousel-indicators .active{
  background-color: #fff;
}

/* =========================================================
   COLUNA DIREITA — FORM (mais “enterprise”)
   ========================================================= */
.login-right{
  background: #f8faff;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 0;
}

/* centraliza o card */
.login-card-wrap{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(22px, 4vw, 64px);
  min-height: 0;
}

/* card interno: borda e sombra mais discretas */
.login-card{
  width: min(620px, 100%);
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 16px;
  padding: clamp(28px, 3vw, 44px);

  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.10),
    0 2px 8px rgba(15, 23, 42, 0.06);
}

/* logo */
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-weight: 800;
}
.brand--center{
  justify-content: center;
  margin-bottom: 18px;
}
.brand-logo{
  width: 150px;
  height: auto;
}

/* header */
.login-header{
  margin-bottom: 18px;
}
.login-header--center{
  text-align: center;
  margin-bottom: 22px;
}

.login-title{
  margin: 0;
  color: var(--primary);
  font-weight: 700;
}
.login-title--card{
  font-size: clamp(1.35rem, 1.8vw, 1.6rem);
  letter-spacing: -0.01em;
}

.login-subtitle{
  color: rgba(15,23,42,.60);
}
.login-subtitle--card{
  font-size: 1rem;
}

/* labels mais sóbrios */
.login-label{
  font-size: .8rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: rgba(15,23,42,.72);
}

/* inputs + ícones */
.input-wrap{
  position: relative;
}

.input-ico{
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  opacity: .55;
  font-size: .95rem;
}

/* input “enterprise”: fundo menos azul, borda mais consistente */
.login-input--icon{
  height: 46px;
  border-radius: 8px;
  padding: 12px 14px 12px 48px;

  background: #f3f6fb;
  border: 1px solid rgba(15,23,42,.12);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.login-input--icon:focus{
  background: #ffffff;
  border-color: rgba(21, 68, 121, .35);
  box-shadow: 0 0 0 .18rem rgba(21, 68, 121, .12);
}

/* botão principal mais corporativo */
.login-btn--card{
  margin-top: 16px;
  height: 46px;
  border-radius: 8px;
  font-weight: 900;
  width: 100%;
  background-color: #154479;
  border: 1px solid rgba(0,0,0,0);
  transition: transform .06s ease, filter .15s ease, box-shadow .15s ease;
}

.login-btn--card{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px; 
}

.login-btn--card i{
  font-size: 1.15rem;
  line-height: 0;
  opacity: .95;
}

.login-btn--card span{
  line-height: 1;
}

.login-btn--card:hover{
  filter: brightness(0.96);
  box-shadow: 0 10px 24px rgba(21, 68, 121, .18);
}

.login-btn--card:active{
  transform: translateY(1px);
}

/* alerta */
.login-alert{
  /* background: rgba(255, 255, 255, 0.1); */
  border: 1px solid rgba(239,68,68,.22);
  color: rgba(127,29,29,1);
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 14px;
}

/* footer */
/* .login-footer--center{
  text-align: center;
  padding: 16px clamp(22px, 4vw, 64px) 22px;
  margin: 0;
  color: rgba(15,23,42,.45);
} */

/* =========================================================
   Toggle senha (sem duplicidade e mais clean)
   ========================================================= */
.input-wrap--password .login-input--icon{
  padding-right: 58px;
}

.pass-toggle{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);

  width: 40px;
  height: 40px;
  border-radius: 10px;

  border: 0;
  background: transparent;
  color: rgba(15,23,42,.55);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.pass-toggle:hover{
  background: rgba(15,23,42,.06);
  color: rgba(15,23,42,.75);
}

.pass-toggle:focus,
.pass-toggle:focus-visible{
  outline: none;
  box-shadow: none;
}

.input-wrap--password:focus-within .pass-toggle{
  background: rgba(15,23,42,.04);
}

.pass-toggle i{
  font-size: 1.1rem;
  line-height: 1;
}

/* =========================================================
   RESPONSIVO (sem scroll)
   ========================================================= */
@media (max-width: 992px){
  .login-page{
    grid-template-columns: 1fr;

    width: calc(100vw - 32px);
    height: calc(100vh - 32px);
    margin: 16px;

    border-radius: 18px;
  }

  /* some o hero no mobile */
  .login-left{
    display: none;
  }

  .login-card-wrap{
    padding: 18px;
  }

  .login-card{
    width: 100%;
    padding: 22px;
  }

  .login-footer--center{
    padding: 10px 18px 14px;
  }
}

/* telas muito baixas (evita “cortar” card) */
@media (max-height: 720px) and (max-width: 992px){
  .login-card-wrap{
    align-items: flex-start;
    padding-top: 14px;
    padding-bottom: 12px;
  }
}