:root {
  --navy: #071a33;
  --navy-2: #0b2748;
  --blue: #0d6efd;
  --blue-dark: #0759d5;
  --cyan: #58c8ff;
  --text: #132238;
  --muted: #68778a;
  --line: #dfe7f1;
  --surface: #ffffff;
  --soft: #f3f7fb;
  --success: #16834b;
  --danger: #c73535;
  --shadow: 0 30px 70px rgba(7, 26, 51, .15);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--soft);
}
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(430px, 1.08fr) minmax(440px, .92fr);
}

.login-visual {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background: var(--navy) url("assets/hero-login.jpg") center/cover no-repeat;
}
.login-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 18%, rgba(88, 200, 255, .24), transparent 34%),
    linear-gradient(130deg, rgba(4, 20, 42, .94), rgba(5, 42, 78, .72));
}
.visual-overlay {
  position: absolute;
  width: 420px;
  height: 420px;
  right: -180px;
  bottom: -140px;
  border-radius: 50%;
  background: rgba(88, 200, 255, .13);
  filter: blur(3px);
  z-index: 1;
}
.visual-content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: 46px clamp(38px, 6vw, 86px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}
.visual-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -.02em;
}
.visual-brand img,
.mobile-brand img { filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .18)); }
.visual-copy { max-width: 650px; }
.eyebrow {
  display: inline-flex;
  padding: 8px 13px;
  border: 1px solid rgba(255,255,255,.23);
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  color: #bceaff;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .13em;
}
.visual-copy h1 {
  margin: 22px 0 18px;
  max-width: 620px;
  font-size: clamp(2.55rem, 4.8vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.055em;
}
.visual-copy p {
  margin: 0;
  max-width: 575px;
  color: rgba(255,255,255,.79);
  font-size: clamp(1rem, 1.35vw, 1.23rem);
  line-height: 1.7;
}
.visual-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 30px;
}
.visual-benefits span {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.11);
  border: 1px solid rgba(255,255,255,.14);
  font-size: .88rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}
.visual-footnote {
  margin: 0;
  color: rgba(255,255,255,.61);
  font-size: .83rem;
}

.login-access {
  position: relative;
  min-height: 100vh;
  padding: 32px clamp(28px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 100% 0, rgba(13,110,253,.08), transparent 32%),
    linear-gradient(180deg, #fff, #f5f8fc);
}
.login-wrap { width: min(100%, 500px); }
.back-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 18px;
  color: #607086;
  font-size: .88rem;
  font-weight: 700;
  transition: color .2s ease, transform .2s ease;
}
.back-link:hover { color: var(--blue); transform: translateX(-2px); }
.mobile-brand { display: none; }
.login-card {
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(190, 205, 222, .72);
  border-radius: 28px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.login-header { margin-bottom: 30px; }
.secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #eaf3ff;
  color: #0759d5;
  font-size: .71rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.login-header h2 {
  margin: 17px 0 8px;
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  letter-spacing: -.045em;
}
.login-header p { margin: 0; color: var(--muted); line-height: 1.6; }
form > label {
  display: block;
  margin: 0 0 8px;
  font-size: .87rem;
  font-weight: 700;
}
.field {
  position: relative;
  margin-bottom: 18px;
}
.field-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #7f91a6;
  font-size: .93rem;
  pointer-events: none;
}
.field input {
  width: 100%;
  height: 54px;
  padding: 0 48px 0 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  background: #fbfdff;
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field input::placeholder { color: #99a7b7; }
.field input:focus {
  border-color: rgba(13,110,253,.65);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(13,110,253,.11);
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  opacity: .64;
}
.password-toggle:hover { background: #edf4fc; opacity: 1; }
.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 2px 0 20px;
}
.remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #56677b;
  font-size: .84rem;
}
.remember input { accent-color: var(--blue); }
.link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: .84rem;
  font-weight: 700;
  cursor: pointer;
}
.form-message {
  min-height: 0;
  margin: 0 0 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: .83rem;
  font-weight: 600;
  line-height: 1.45;
}
.form-message:not(:empty) {
  position: relative;
  padding: 12px 14px 12px 40px;
  background: #eef5fd;
  border-color: #d8e8fb;
  color: #34506f;
}
.form-message:not(:empty)::before {
  content: "i";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  background: #d9eaff;
  color: var(--blue-dark);
  font-size: .7rem;
  font-weight: 800;
}
.form-message.is-error { color: #9f2828; background: #fff2f2; border-color: #ffd8d8; }
.form-message.is-error::before { content: "!"; color: #fff; background: var(--danger); }
.form-message.is-success { color: #11683c; background: #edfaf3; border-color: #cfeedd; }
.form-message.is-success::before { content: "✓"; color: #fff; background: var(--success); }
.primary-button,
.trial-button,
.support-button {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.primary-button {
  border: 0;
  background: linear-gradient(135deg, var(--blue), #0757cb);
  color: #fff;
  box-shadow: 0 14px 28px rgba(13,110,253,.25);
}
.primary-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 18px 34px rgba(13,110,253,.3); }
.primary-button:disabled { opacity: .82; cursor: wait; }
.primary-button.is-success {
  background: linear-gradient(135deg, #16834b, #0e6b3b);
  box-shadow: 0 14px 28px rgba(22,131,75,.24);
}
.button-spinner {
  display: none;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255,255,255,.42);
  border-top-color: #fff;
  border-radius: 50%;
}
.primary-button.is-loading .button-spinner { display: inline-block; animation: loginSpin .72s linear infinite; }
.primary-button.is-loading .button-icon { display: none; }
@keyframes loginSpin { to { transform: rotate(360deg); } }
.separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: #99a5b5;
  font-size: .77rem;
}
.separator::before,
.separator::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.trial-button {
  border: 1px solid #cdd9e7;
  background: #fff;
  color: #17314f;
}
.trial-button:hover { transform: translateY(-1px); border-color: #9db8d7; background: #f8fbff; }
.support-button {
  margin-top: 12px;
  min-height: 42px;
  border: 0;
  background: transparent;
  color: #66788d;
  font-size: .82rem;
  font-weight: 600;
}
.support-button:hover { color: var(--blue); background: #eef5fd; }
.access-footer {
  margin: 20px 0 0;
  text-align: center;
  color: #8190a2;
  font-size: .76rem;
}

@media (max-width: 920px) {
  .login-page { display: block; }
  .login-visual { display: none; }
  .login-access { min-height: 100vh; padding: 34px 20px 28px; }
  .back-link { margin-bottom: 16px; }
  .mobile-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 0 22px;
  }
  .mobile-brand strong,
  .mobile-brand span { display: block; }
  .mobile-brand strong { font-size: 1.07rem; }
  .mobile-brand span { margin-top: 3px; color: var(--muted); font-size: .76rem; }
}

@media (max-width: 520px) {
  .login-access { align-items: flex-start; background: #f6f9fd; }
  .login-card { padding: 25px 20px; border-radius: 22px; box-shadow: 0 18px 45px rgba(7,26,51,.11); }
  .login-header { margin-bottom: 24px; }
  .form-options { align-items: flex-start; }
  .remember, .link-button { font-size: .78rem; }
  .field input { height: 52px; }
}


/* Central de Suporte provisória */
.support-modal[hidden] { display: none; }
.support-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 22px;
}
.support-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 18, 38, .66);
  backdrop-filter: blur(7px);
}
.support-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 470px);
  padding: 34px;
  border: 1px solid rgba(198, 214, 231, .9);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 32px 90px rgba(4, 18, 38, .32);
  text-align: center;
}
.support-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #f1f5fa;
  color: #52657a;
  font-size: 1.35rem;
  cursor: pointer;
}
.support-modal__close:hover { background: #e7eef7; color: var(--text); }
.support-modal__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e9f3ff, #d9ecff);
  font-size: 1.55rem;
}
.support-modal__eyebrow {
  display: block;
  color: var(--blue-dark);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
}
.support-modal__dialog h2 {
  margin: 10px 0 12px;
  color: var(--text);
  font-size: 1.55rem;
  letter-spacing: -.035em;
}
.support-modal__dialog p {
  margin: 0 0 11px;
  color: var(--muted);
  line-height: 1.65;
}
.support-modal__notice {
  margin: 20px 0;
  padding: 13px 15px;
  border: 1px solid #dce9f7;
  border-radius: 13px;
  background: #f3f8fe;
  color: #3b5876;
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.45;
}
.support-modal__confirm {
  width: 100%;
  min-height: 49px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 25px rgba(13,110,253,.22);
}
.support-modal__confirm:hover { transform: translateY(-1px); }
body.modal-open { overflow: hidden; }

@media (max-width: 520px) {
  .support-modal { padding: 14px; }
  .support-modal__dialog { padding: 30px 20px 22px; border-radius: 20px; }
  .support-modal__dialog h2 { font-size: 1.35rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .login-card { animation: cardIn .55s ease both; }
  .visual-copy { animation: copyIn .65s ease both; }
  .support-modal:not([hidden]) .support-modal__dialog { animation: modalIn .24s ease both; }
  .support-modal:not([hidden]) .support-modal__backdrop { animation: fadeIn .2s ease both; }
  @keyframes cardIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes copyIn { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: translateX(0); } }
  @keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
}
