:root {
  --ink: #0F172A;
  --ink-soft: #16213E;
  --blue: #2563EB;
  --blue-deep: #1D4ED8;
  --green: #245096;
  --white: #FFFFFF;
  --mist: #F8FAFC;
  --slate: #64748B;
  --line: rgba(15, 23, 42, .09);
  --shadow: 0 24px 70px -34px rgba(15, 23, 42, .55);
  --ff-display: "Poppins", sans-serif;
  --ff-body: "Inter", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--mist);
  font-family: var(--ff-body);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid rgba(36, 80, 150, .75);
  outline-offset: 3px;
  border-radius: 8px;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(440px, .94fr);
  min-height: 100vh;
}

.login-brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 48px;
  color: var(--white);
  background: radial-gradient(circle at 18% 18%, #16213E 0%, var(--ink) 56%, #0B1120 100%);
}

.login-brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 28% 24%, black, transparent 72%);
}

.brand-glow {
  position: absolute;
  top: -170px;
  right: -140px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, .35), transparent 70%);
  filter: blur(10px);
}

.brand-mark,
.brand-mobile {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: inherit;
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 800;
}

.brand-mobile {
  display: none;
  color: var(--ink);
  margin-bottom: 32px;
}

.brand-dot {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: var(--green);
  transform: rotate(45deg);
}

.brand-copy {
  position: relative;
  z-index: 1;
  max-width: 540px;
  margin: auto 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 15px;
  border-radius: 999px;
  color: #C7D8F2;
  background: rgba(36, 80, 150, .12);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #1C4180;
  background: rgba(36, 80, 150, .1);
}

.brand-copy h1,
.login-heading h2 {
  margin: 0;
  font-family: var(--ff-display);
  letter-spacing: -.02em;
}

.brand-copy h1 {
  max-width: 620px;
  color: var(--white);
  font-size: clamp(2.2rem, 4.5vw, 4.4rem);
  line-height: 1.03;
}

.brand-copy p {
  max-width: 500px;
  margin: 22px 0 0;
  color: #C7D0E0;
  font-size: 1.04rem;
  line-height: 1.75;
}

.security-card {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 420px;
  margin-top: 34px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(12px);
}

.security-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #FFFFFF;
  background: var(--green);
  font-size: 1.35rem;
}

.security-card strong {
  display: block;
  color: var(--white);
  font-weight: 700;
}

.security-card span {
  display: block;
  color: #AEB9CF;
  font-size: .85rem;
  line-height: 1.5;
}

.brand-foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: #93A0BA;
  font-size: .82rem;
}

.brand-foot span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.brand-foot i {
  color: var(--green);
}

.login-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 22px;
  background:
    radial-gradient(circle at 80% 15%, rgba(37, 99, 235, .08), transparent 32%),
    var(--white);
}

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

.back-site-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--slate);
  font-size: .92rem;
  font-weight: 800;
}

.back-site-link:hover {
  color: var(--blue);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 42px;
  padding: 6px;
  border-radius: 16px;
  background: var(--mist);
}

.auth-tab {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  color: #53627C;
  background: transparent;
  font: inherit;
  font-weight: 800;
  transition: .2s ease;
}

.auth-tab.active {
  color: #001A44;
  background: var(--white);
  box-shadow: 0 12px 26px -18px rgba(15, 23, 42, .6);
}

.auth-panel {
  display: none;
}

.auth-panel.active {
  display: block;
}

.login-heading {
  margin-bottom: 30px;
}

.login-heading h2 {
  color: var(--ink);
  font-size: 2rem;
  line-height: 1.15;
}

.login-heading p {
  max-width: 430px;
  margin: 12px 0 0;
  color: var(--slate);
  font-size: 1.05rem;
  line-height: 1.35;
}

.login-alert {
  border: 0;
  border-radius: 14px;
  font-size: .88rem;
}

.field {
  margin-bottom: 17px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: .84rem;
  font-weight: 700;
}

.input-wrap {
  position: relative;
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  color: #94A3B8;
  transform: translateY(-50%);
}

.input-wrap input {
  width: 100%;
  min-height: 54px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  padding: 13px 46px 13px 42px;
  transition: .18s ease;
}

.input-wrap input:focus {
  border-color: var(--blue);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  color: #94A3B8;
  background: transparent;
  transform: translateY(-50%);
}

.toggle-password:hover {
  color: var(--ink);
  background: var(--mist);
}

.field-error {
  display: block;
  margin-top: 7px;
  color: #DC2626;
  font-size: .78rem;
}

.field-error:empty {
  display: none;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 8px 0 26px;
  font-size: .98rem;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.remember input {
  width: 19px;
  height: 19px;
  accent-color: var(--green);
}

.login-options a {
  color: var(--blue);
  font-weight: 700;
}

.login-options a:hover {
  color: var(--blue-deep);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 58px;
  border: 2px solid var(--green);
  border-radius: 14px;
  color: #FFFFFF;
  background: var(--green);
  font: inherit;
  font-size: 1.03rem;
  font-weight: 800;
  transition: .2s ease;
}

.btn-submit:hover {
  border-color: #1C4180;
  background: #1C4180;
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -16px rgba(36, 80, 150, .65);
}

.btn-submit:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
  box-shadow: none;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 34px 0 18px;
  color: #94A3B8;
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.google-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  color: #001A44;
  background: var(--white);
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  transition: .2s ease;
}

.google-button:hover {
  border-color: #CBD5E1;
  background: var(--mist);
}

.google-g {
  color: #EA4335;
  font-weight: 900;
}

.password-meter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-top: 10px;
}

.password-meter span {
  height: 5px;
  border-radius: 999px;
  background: #E2E8F0;
}

.password-meter[data-strength="1"] span:nth-child(-n+1),
.password-meter[data-strength="2"] span:nth-child(-n+2),
.password-meter[data-strength="3"] span:nth-child(-n+3),
.password-meter[data-strength="4"] span:nth-child(-n+4) {
  background: var(--green);
}

.hint {
  display: block;
  margin-top: 8px;
  color: #53627C;
  font-size: .9rem;
}

.terms {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 18px 0 24px;
  color: #53627C;
  font-size: .91rem;
  line-height: 1.35;
}

.terms input {
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  margin-top: 2px;
  accent-color: var(--green);
}

.terms a {
  color: var(--blue);
  font-weight: 800;
}

.quick-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
}

.quick-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--white);
  font-size: .84rem;
  font-weight: 700;
}

.quick-links a:hover {
  border-color: var(--ink);
  background: var(--mist);
}

.quick-links .quick-link-primary {
  border-color: rgba(36, 80, 150, .45);
  color: #245096;
  background: rgba(36, 80, 150, .13);
}

.quick-links .quick-link-primary:hover {
  border-color: var(--green);
  background: rgba(36, 80, 150, .22);
}

@media (max-width: 980px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

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

  .brand-mobile {
    display: inline-flex;
  }

  .login-form-panel {
    min-height: 100vh;
  }
}

@media (max-width: 520px) {
  .login-form-panel {
    padding: 26px 18px;
  }

  .login-heading h2 {
    font-size: 1.6rem;
  }

  .login-options,
  .quick-links {
    grid-template-columns: 1fr;
  }

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

/* Layout profissional solicitado: formulario limpo com abas, como no modelo enviado. */
body {
  background: #fff;
}

.login-shell {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 24px 18px 48px;
  background: #fff;
}

.login-brand-panel,
.brand-mobile {
  display: none !important;
}

.login-form-panel {
  width: min(100%, 560px);
  min-height: auto;
  padding: 0;
  background: #fff;
}

.login-card {
  width: 100%;
}

.auth-tabs {
  margin-bottom: 44px;
  padding: 5px;
  border-radius: 16px;
  background: #F6F8FC;
}

.auth-tab {
  min-height: 50px;
  border-radius: 13px;
  color: #52627F;
  font-size: 1rem;
}

.auth-tab.active {
  color: #001A44;
  background: #fff;
  box-shadow: 0 10px 20px -16px rgba(15, 23, 42, .55);
}

.login-heading {
  margin-bottom: 31px;
}

.login-heading h2 {
  color: #001A44;
  font-size: clamp(2rem, 5vw, 2.32rem);
  font-weight: 800;
}

.login-heading p {
  max-width: 500px;
  color: #53698B;
  font-size: 1.18rem;
  line-height: 1.26;
}

.field {
  margin-bottom: 20px;
}

.field label {
  margin-bottom: 9px;
  color: #001A44;
  font-size: 1rem;
}

.input-wrap input {
  min-height: 54px;
  border-color: #E0E5EE;
  border-radius: 14px;
  color: #001A44;
  font-size: 1.05rem;
  padding-left: 50px;
}

.input-wrap input::placeholder {
  color: #6F7B8D;
}

.input-icon {
  left: 18px;
  color: #9AAAC4;
  font-size: 1.1rem;
}

.toggle-password {
  right: 13px;
}

.login-options {
  align-items: center;
  margin: 8px 0 26px;
  font-size: 1rem;
}

.login-options a {
  padding: 2px 4px;
  color: #1455FF;
  text-decoration: underline;
}

.remember {
  color: #001A44;
}

.remember input,
.terms input {
  width: 20px;
  height: 20px;
}

.btn-submit {
  min-height: 58px;
  border-radius: 13px;
  color: #FFFFFF;
  font-size: 1.06rem;
}

.login-divider {
  margin: 34px 0 18px;
  color: #9AAAC4;
  font-size: 1rem;
}

.google-button {
  min-height: 58px;
  border-color: #E0E5EE;
  border-radius: 13px;
  color: #001A44;
  font-size: 1.05rem;
}

.signup-form .field {
  margin-bottom: 18px;
}

.signup-form .input-wrap input.error {
  border-color: #FF3B46;
}

.terms {
  color: #53698B;
  font-size: 1rem;
}

@media (max-width: 520px) {
  .login-shell {
    padding: 18px 14px 36px;
  }

  .login-options {
    align-items: flex-start;
    gap: 14px;
  }
}
