/* ================================================================
   FISCUM — Login / Auth
   Estilos específicos da página de autenticação (login, signup,
   forgot password, verificação de e-mail).
   ================================================================ */


/* ===== Override: body sem scroll-reveal background ===== */
html.auth-page,
.auth-page body {
  height: 100%;
  background: var(--black);
  overflow-x: hidden;
}


/* ===== Layout split: brand + form ===== */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  max-width: 1440px;
  margin: 0 auto;
  box-shadow: 0 0 0 1px var(--border);
}


/* ===== Left panel (brand) ===== */
.auth-left {
  background: var(--black);
  color: rgba(255, 255, 255, .65);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

/* auth-left grid pattern removed */

.al-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.al-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .01em;
}

.al-content {
  position: relative;
  z-index: 1;
}

.al-quote {
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 32px);
  font-style: italic;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 32px;
}

.al-quote em {
  color: var(--blue);
  font-style: normal;
}

.al-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.al-feat {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.al-feat-check {
  width: 22px;
  height: 22px;
  background: rgba(0, 135, 90, .2);
  border: 1px solid rgba(0, 135, 90, .3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.al-feat-text {
  font-size: 15px;
  color: rgba(255, 255, 255, .65);
  line-height: 1.5;
  font-weight: 300;
}


.al-feat-text strong {
  color: #fff;
  font-weight: 500;
}


/* ===== Testimonial (bottom of left panel) ===== */
.al-bottom {
  position: relative;
  z-index: 1;
}

.al-testimonial {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 24px;
}

.al-t-text {
  font-size: 14px;
  color: rgba(255, 255, 255, .55);
  line-height: 1.7;
  margin-bottom: 12px;
  font-style: italic;
}

.al-t-author {
  font-size: 12px;
  color: rgba(255, 255, 255, .45);
  font-family: var(--mono);
  letter-spacing: .04em;
}


/* ===== Coming Soon overlay ===== */
.auth-coming-soon {
  position: absolute;
  inset: 0;
  z-index: 50;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(255,255,255,.85);
  display: flex;
  align-items: center;
  justify-content: center;
}

.acs-content {
  text-align: center;
  max-width: 320px;
}

.acs-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--black);
  margin: 20px 0 10px;
}

.acs-desc {
  font-size: 14px;
  color: var(--g5);
  line-height: 1.7;
}

/* ===== Right panel (form) ===== */
.auth-right {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--white);
  position: relative;
  background: var(--white);
  position: relative;
}

.ar-top {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 13px;
  color: var(--g4);
}

.ar-top a,
.ar-top .switch-panel {
  color: var(--blue);
  font-weight: 600;
  cursor: pointer;
}

.ar-box {
  width: 100%;
  max-width: 400px;
}


/* ===== Tabs ===== */
.auth-tabs {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 32px;
}

.tab-btn {
  flex: 1;
  padding: 10px;
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  color: var(--g4);
  border: none;
  cursor: pointer;
  transition: all .2s;
}

.tab-btn.active {
  background: var(--blue);
  color: #fff;
}


/* ===== Form ===== */
.auth-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 4px;
}

.auth-sub {
  font-size: 14px;
  color: var(--g4);
  margin-bottom: 28px;
  font-weight: 300;
}

.auth-sub a,
.auth-sub .switch-panel {
  color: var(--blue);
  cursor: pointer;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--g5);
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font);
}

.form-input {
  padding: 12px 14px;
  background: var(--g1);
  border: 1.5px solid var(--border-m);
  color: var(--black);
  font-size: 15px;
  font-family: var(--font);
  transition: all .2s;
  border-radius: 6px;
}

.form-input:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, .07);
}

.form-input::placeholder {
  color: var(--g3);
}

.form-input.error {
  border-color: var(--red);
  background: var(--red2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pw-wrap {
  position: relative;
}

.pw-wrap .form-input {
  width: 100%;
  padding-right: 44px;
}

.pw-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  cursor: pointer;
  color: var(--g4);
  padding: 2px;
  transition: color .2s;
  border: none;
}

.pw-toggle:hover {
  color: var(--black);
}

.form-helper {
  font-size: 12px;
  color: var(--g4);
  margin-top: 3px;
}

.form-error {
  font-size: 12px;
  color: var(--red);
  margin-top: 3px;
}


/* ===== Forgot link ===== */
.forgot-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -6px;
  margin-bottom: 8px;
}

.forgot-link {
  font-size: 13px;
  color: var(--blue);
}


/* ===== Submit button ===== */
.auth-btn {
  width: 100%;
  padding: 14px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s;
  margin-top: 8px;
  border: none;
  font-family: var(--font);
}

.auth-btn:hover {
  background: var(--blue-d);
  transform: translateY(-1px);
}

.auth-btn:disabled {
  background: var(--g3);
  cursor: not-allowed;
  transform: none;
}


/* ===== Divider ===== */
.or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-size: 13px;
  color: var(--g4);
}

.or-divider::before,
.or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}


/* ===== SSO buttons ===== */
.sso-btn {
  width: 100%;
  padding: 12px;
  background: var(--white);
  border: 1.5px solid var(--border-m);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  font-family: var(--font);
}

.sso-btn:hover {
  border-color: var(--g3);
  background: var(--g1);
}

.sso-btn:last-child {
  margin-bottom: 0;
}


/* ===== Terms ===== */
.auth-terms {
  font-size: 12px;
  color: var(--g4);
  text-align: center;
  margin-top: 20px;
  line-height: 1.6;
}

.auth-terms a {
  color: var(--blue);
}


/* ===== Password strength meter ===== */
.pw-strength {
  margin-top: 6px;
}

.pws-bar {
  height: 3px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}

.pws-fill {
  height: 100%;
  border-radius: 100px;
  transition: all .3s;
  width: 0;
}

.pws-label {
  font-size: 11px;
  font-family: var(--mono);
  margin-top: 4px;
}


/* ===== Panel switching ===== */
.auth-panel {
  display: none;
}

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


/* ===== Verify email state ===== */
.verify-state {
  text-align: center;
  display: none;
}

.verify-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.verify-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}

.verify-sub {
  font-size: 14px;
  color: var(--g4);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 24px;
}

.verify-resend {
  font-size: 14px;
  color: var(--g4);
}

.verify-resend a,
.verify-resend .switch-panel {
  color: var(--blue);
  font-weight: 600;
  cursor: pointer;
}

.verify-info {
  padding: 16px;
  background: var(--g1);
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--g5);
}


/* ===== Responsive ===== */
@media (max-width: 768px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-left {
    display: none;
  }

  .auth-right {
    padding: 32px 24px;
    align-items: stretch;
  }

  .ar-box {
    max-width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .ar-top {
    position: static;
    text-align: center;
    margin-bottom: 16px;
  }

  .auth-title {
    font-size: 22px;
  }
}
