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

.login-page { min-height: 100dvh; }
.register-success { color: var(--status-success-ink); border-color: #b5d0bb; background: var(--status-success-bg); }
.login-shell { display: grid; min-height: 100dvh; grid-template-columns: minmax(0, 1fr) minmax(360px, 520px); align-items: center; gap: 12vw; max-width: 1240px; margin: 0 auto; padding: 64px; }
.login-intro { display: grid; max-width: 600px; gap: 24px; }
.brand-lockup { display: flex; align-items: center; gap: 10px; }
.brand-lockup--large .brand-wordmark { font-size: 28px; }
.brand-mark--image { width: 42px; height: 42px; }
.login-intro h1 { max-width: 560px; font-size: clamp(36px, 5vw, 64px); line-height: 1.05; }
.login-intro__copy { max-width: 460px; color: var(--color-text-secondary); font-size: 18px; line-height: 28px; }
.login-intro__note { display: inline-flex; width: fit-content; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-pill); color: var(--color-text-secondary); background: rgba(255, 255, 255, .6); font-size: 12px; }
.login-card { padding: 32px; }
.login-register-link { margin-top: 20px; color: var(--color-text-secondary); font-size: 13px; text-align: center; }
.login-register-link a { color: var(--color-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.register-shell { align-items: start; padding-top: 36px; padding-bottom: 36px; }
.register-shell .login-intro { position: sticky; top: 36px; }
@media (max-width: 900px) { .login-shell { grid-template-columns: 1fr; gap: 40px; max-width: 600px; padding: 32px 24px; } .login-intro h1 { font-size: 40px; } }
@media (max-width: 900px) { .register-shell .login-intro { position: static; } }
@media (max-width: 480px) { .login-shell { padding: 24px 16px; } .login-card { padding: 24px 20px; } .login-intro h1 { font-size: 34px; } }

/* Login exclusivo: as regras do cadastro acima permanecem inalteradas. */
.login-page--auth {
  min-height: 100svh;
  background: #f4f7fb;
}

.login-page--auth .auth-layout {
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(0, 1.04fr) minmax(440px, .96fr);
}

.login-page--auth .auth-showcase {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100svh;
  align-items: center;
  overflow: hidden;
  padding: clamp(40px, 6.4vw, 92px);
  background: linear-gradient(138deg, #091a31 0%, #0b3261 52%, #1769cb 100%);
  color: #fff;
}

.login-page--auth .auth-showcase::before,
.login-page--auth .auth-showcase::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.login-page--auth .auth-showcase::before {
  top: -280px;
  right: -250px;
  width: 690px;
  height: 690px;
  background: radial-gradient(circle at 42% 58%, rgba(44, 137, 255, .35), rgba(44, 137, 255, 0) 68%);
}

.login-page--auth .auth-showcase::after {
  right: -310px;
  bottom: -455px;
  width: 810px;
  height: 810px;
  box-shadow: 0 0 0 54px rgba(255, 255, 255, .025), 0 0 0 108px rgba(255, 255, 255, .02);
}

.login-page--auth .auth-showcase__inner {
  width: min(100%, 610px);
  margin: auto 0;
}

.login-page--auth .auth-brand {
  display: inline-flex;
  width: min(100%, 354px);
  align-items: center;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(2, 17, 37, .17);
}

.login-page--auth .auth-brand img {
  width: 100%;
  height: auto;
}

.login-page--auth .auth-showcase__copy {
  margin-top: clamp(42px, 6vw, 78px);
}

.login-page--auth .auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, .76);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
}

.login-page--auth .auth-kicker span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #58b9ff;
  box-shadow: 0 0 0 5px rgba(88, 185, 255, .14);
}

.login-page--auth .auth-showcase h1 {
  max-width: 570px;
  margin-top: 20px;
  color: #fff;
  font-size: clamp(42px, 5vw, 66px);
  font-weight: 750;
  letter-spacing: -.055em;
  line-height: 1.04;
}

.login-page--auth .auth-showcase h1 span {
  display: block;
  color: #73c6ff;
}

.login-page--auth .auth-showcase__description {
  max-width: 470px;
  margin-top: 20px;
  color: rgba(255, 255, 255, .76);
  font-size: 16px;
  line-height: 1.75;
}

.login-page--auth .auth-benefits {
  display: grid;
  gap: 15px;
  margin-top: 31px;
}

.login-page--auth .auth-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, .92);
  font-size: 14px;
}

.login-page--auth .auth-benefit-icon {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(156, 215, 255, .38);
  border-radius: 50%;
  background: rgba(77, 169, 255, .16);
}

.login-page--auth .auth-benefit-icon img {
  width: 14px;
  height: 14px;
  filter: invert(1);
}

.login-page--auth .auth-showcase__footer {
  margin-top: clamp(42px, 6vw, 76px);
  color: rgba(255, 255, 255, .55);
  font-size: 12px;
}

.login-page--auth .auth-main {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 100svh;
  place-items: center;
  padding: clamp(28px, 6vw, 84px);
  background: linear-gradient(160deg, #fbfdff 0%, #f1f5fa 100%);
}

.login-page--auth .auth-form-card {
  width: min(100%, 460px);
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid #e8edf4;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 75px rgba(26, 54, 89, .09), 0 3px 12px rgba(26, 54, 89, .04);
}

.login-page--auth .auth-form-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 31px;
}

.login-page--auth .auth-form-eyebrow {
  color: #1671d8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
}

.login-page--auth .auth-form-heading h2 {
  color: #18263a;
  font-size: clamp(27px, 3vw, 34px);
  letter-spacing: -.04em;
  line-height: 1.2;
}

.login-page--auth .auth-form-heading > p:last-child {
  color: #6b7788;
  font-size: 14px;
}

.login-page--auth .auth-form {
  gap: 19px;
}

.login-page--auth .auth-form .form-field {
  gap: 8px;
}

.login-page--auth .auth-form .form-field > label {
  color: #29384d;
  font-size: 13px;
  font-weight: 600;
}

.login-page--auth .auth-form .form-field > input,
.login-page--auth .auth-password-control input {
  min-height: 54px;
  padding: 13px 15px;
  border: 1px solid #dce3ed;
  border-radius: 10px;
  background: #fbfcfe;
  color: #17263a;
  font-size: 14px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.login-page--auth .auth-form input::placeholder {
  color: #9aa5b4;
}

.login-page--auth .auth-form .form-field > input:focus,
.login-page--auth .auth-password-control input:focus {
  border-color: #3489e8;
  outline: 0;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(52, 137, 232, .13);
}

.login-page--auth .auth-password-control {
  position: relative;
}

.login-page--auth .auth-password-control input {
  width: 100%;
  padding-right: 54px;
}

.login-page--auth .auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  width: 38px;
  height: 38px;
  transform: translateY(-50%);
  place-items: center;
  border-radius: 8px;
  background: transparent;
  color: #758398;
}

.login-page--auth .auth-password-toggle:hover {
  background: #eef4fb;
  color: #1769cb;
}

.login-page--auth .auth-password-toggle:focus-visible {
  outline: 2px solid #3489e8;
  outline-offset: 1px;
}

.login-page--auth .auth-password-toggle img {
  width: 19px;
  height: 19px;
}

.login-page--auth .auth-remember {
  width: fit-content;
  color: #566477;
  font-size: 13px;
}

.login-page--auth .auth-remember input {
  width: 17px;
  height: 17px;
  accent-color: #1769cb;
}

.login-page--auth .auth-form .field-message:empty {
  display: none;
}

.login-page--auth .auth-form .field-message:not(:empty) {
  min-height: auto;
  margin-top: -2px;
}

.login-page--auth .auth-submit {
  min-height: 54px;
  margin-top: 2px;
  border-radius: 10px;
  background: #1769cb;
  box-shadow: 0 9px 20px rgba(23, 105, 203, .18);
  font-size: 14px;
  font-weight: 650;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.login-page--auth .auth-submit:hover {
  transform: translateY(-1px);
  background: #1058af;
  box-shadow: 0 12px 24px rgba(23, 105, 203, .24);
}

.login-page--auth .auth-submit:disabled {
  transform: none;
  background: #9aaec4;
  box-shadow: none;
}

.login-page--auth .auth-register-link {
  margin-top: 25px;
  color: #758195;
  font-size: 13px;
  text-align: center;
}

.login-page--auth .auth-register-link a {
  color: #1769cb;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgba(23, 105, 203, .35);
  text-underline-offset: 3px;
}

.login-page--auth .auth-register-link a:hover {
  color: #1058af;
  text-decoration-color: currentColor;
}

.login-page--auth .auth-main__footer {
  position: absolute;
  right: 20px;
  bottom: 19px;
  left: 20px;
  color: #97a2b0;
  font-size: 11px;
  text-align: center;
}

@media (max-width: 900px) {
  .login-page--auth .auth-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .login-page--auth .auth-showcase {
    min-height: auto;
    padding: 48px clamp(24px, 8vw, 70px) 42px;
  }

  .login-page--auth .auth-showcase__inner {
    width: min(100%, 640px);
    margin: 0 auto;
  }

  .login-page--auth .auth-brand {
    width: min(100%, 300px);
  }

  .login-page--auth .auth-showcase__copy {
    margin-top: 36px;
  }

  .login-page--auth .auth-showcase h1 {
    max-width: 620px;
    font-size: clamp(38px, 7vw, 54px);
  }

  .login-page--auth .auth-showcase__description {
    margin-top: 14px;
  }

  .login-page--auth .auth-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 23px;
  }

  .login-page--auth .auth-benefits li {
    align-items: flex-start;
    font-size: 12px;
  }

  .login-page--auth .auth-showcase__footer {
    margin-top: 28px;
  }

  .login-page--auth .auth-main {
    min-height: auto;
    padding: 50px 24px 72px;
  }

  .login-page--auth .auth-form-card {
    width: min(100%, 500px);
  }
}

@media (max-width: 560px) {
  .login-page--auth .auth-showcase {
    padding: 34px 24px 30px;
  }

  .login-page--auth .auth-brand {
    width: min(100%, 270px);
    padding: 7px 10px;
  }

  .login-page--auth .auth-showcase__copy {
    margin-top: 31px;
  }

  .login-page--auth .auth-kicker {
    font-size: 9px;
    letter-spacing: .12em;
  }

  .login-page--auth .auth-showcase h1 {
    margin-top: 15px;
    font-size: clamp(34px, 10vw, 43px);
  }

  .login-page--auth .auth-showcase__description {
    font-size: 14px;
    line-height: 1.6;
  }

  .login-page--auth .auth-benefits {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .login-page--auth .auth-benefits li {
    align-items: center;
    font-size: 12px;
  }

  .login-page--auth .auth-showcase__footer {
    margin-top: 24px;
    font-size: 11px;
  }

  .login-page--auth .auth-main {
    padding: 28px 16px 62px;
  }

  .login-page--auth .auth-form-card {
    padding: 27px 22px;
    border-radius: 17px;
  }

  .login-page--auth .auth-form-heading {
    margin-bottom: 25px;
  }

  .login-page--auth .auth-form-heading h2 {
    font-size: 27px;
  }
}
