/* PortalAI — páginas de autenticação */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #eceae4;
  color: var(--ink);
}

.auth-page .auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.1rem 0;
}

.auth-page .logo {
  font-size: 1.2rem;
}

.auth-page .logo__mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  flex-shrink: 0;
}

.auth-page .logo__mark svg {
  width: 18px;
  height: 18px;
  display: block;
}

.auth-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 1.5rem 1rem 3rem;
}

.auth-card {
  width: min(520px, 100%);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(26, 39, 68, 0.1);
  padding: 1.75rem 1.75rem 1.5rem;
}

.auth-card h1 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-align: center;
}

.auth-card .auth-lead {
  margin: 0 0 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.auth-form {
  display: grid;
  gap: 0.9rem;
}

.auth-field {
  display: grid;
  gap: 0.35rem;
}

.auth-field label {
  font-size: 0.8rem;
  font-weight: 750;
  color: var(--ink-soft);
}

.auth-field input {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.85rem;
  border: 1px solid #ddd7cb;
  border-radius: 11px;
  background: #faf9f6;
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-field input::placeholder {
  color: #9aa1b0;
}

.auth-field input:focus {
  border-color: #b8c0d0;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26, 39, 68, 0.08);
}

.auth-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--muted);
}

.auth-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--ink);
}

.auth-check a {
  color: var(--ink);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-error {
  display: none;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: #fdecea;
  border: 1px solid #f5c2c0;
  color: #9b1c1c;
  font-size: 0.88rem;
  font-weight: 600;
}

.auth-error.is-visible {
  display: block;
}

.auth-success {
  display: none;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: #e8f6ef;
  border: 1px solid #b7e0cb;
  color: #0f6e56;
  font-size: 0.88rem;
  font-weight: 600;
}

.auth-success.is-visible {
  display: block;
}

.verify-card h1 {
  text-align: left;
}

.verify-card .auth-lead {
  text-align: left;
}

.verify-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  background: rgba(15, 110, 86, 0.12);
  color: var(--accent);
}

.verify-email {
  color: var(--ink);
  font-weight: 800;
  word-break: break-all;
}

.otp {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin: 0.25rem 0 0.35rem;
}

.otp__input {
  width: 42px;
  height: 48px;
  border: 1px solid #ddd7cb;
  border-radius: 10px;
  background: #faf9f6;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  outline: none;
}

.otp__input:focus {
  border-color: #b8c0d0;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26, 39, 68, 0.08);
}

.verify-actions {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.verify-linkbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 36px;
  padding: 0.4rem 0.75rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.verify-linkbtn:hover {
  background: #f3f0e9;
  color: var(--ink);
}

.verify-hint {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  color: #9aa1b0;
  text-align: center;
  line-height: 1.4;
}

.verify-hint code {
  font-size: 0.7rem;
  background: #f3f0e9;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

.auth-submit {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 11px;
  background: var(--accent, #1e3a5f);
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

.auth-submit:hover:not(:disabled) {
  background: #152238;
  transform: translateY(-1px);
}

.auth-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.auth-footer {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.84rem;
  color: var(--muted);
}

.auth-footer a {
  color: var(--ink);
  font-weight: 800;
}

.auth-footer a:hover {
  color: var(--accent);
}

.painel-wrap {
  width: min(720px, calc(100% - 2rem));
  margin: 2.5rem auto 4rem;
}

.painel-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 2rem;
}

.painel-card h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.painel-card p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.painel-steps {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.painel-steps li {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  font-weight: 650;
}

.painel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
