/* ============================================================
   Vértice — páginas de autenticação
   ============================================================ */

html {
  background: var(--bg);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
}

.auth-main {
  display: flex;
  flex-direction: column;
  padding: 26px clamp(22px, 4vw, 54px);
  min-height: 100vh;
}

.auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth-content {
  width: 100%;
  max-width: 404px;
  margin: auto;
  padding: 44px 0 56px;
}

.auth-content .eyebrow {
  color: var(--accent-strong);
}

.auth-content h1 {
  margin: 14px 0 10px;
  font-size: clamp(30px, 3.2vw, 38px);
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.auth-sub {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 42ch;
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.auth-form .btn {
  margin-top: 4px;
}

.auth-form .input {
  height: 46px;
}

.auth-form .field-hint {
  margin-top: -2px;
}

.auth-alt {
  margin-top: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.auth-alt a {
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 1px;
  transition: border-color var(--dur) var(--ease);
}

.auth-alt a:hover {
  border-color: var(--accent-line);
}

.auth-support {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--faint);
  font-size: 12px;
}

.auth-support a {
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.auth-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  color: var(--faint);
  font-size: 11.5px;
}

.auth-foot a {
  color: var(--muted);
}

.auth-foot a:hover {
  color: var(--text);
}

.auth-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.auth-notice strong {
  color: var(--text);
  font-weight: 550;
}

.auth-notice.is-error {
  border-color: color-mix(in srgb, var(--danger) 30%, transparent);
  background: var(--danger-soft);
  color: var(--danger);
}

.auth-notice.is-success {
  border-color: color-mix(in srgb, var(--positive) 30%, transparent);
  background: var(--positive-soft);
  color: var(--positive);
}

.auth-loading {
  display: grid;
  gap: 12px;
  padding: 8px 0;
}

/* ---------------- painel de marca ---------------- */

.auth-brand {
  --brand-ink: #f3f1ea;
  --brand-muted: #9a9ca3;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(28px, 4vw, 54px);
  background:
    radial-gradient(700px 420px at 78% 8%, rgba(205, 244, 127, 0.12), transparent 62%),
    radial-gradient(600px 400px at 8% 100%, rgba(140, 170, 255, 0.08), transparent 60%),
    #08090b;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--brand-ink);
}

.auth-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 20%, transparent 78%);
  pointer-events: none;
}

.auth-brand-mark {
  position: absolute;
  right: -80px;
  bottom: -90px;
  width: 420px;
  height: 420px;
  opacity: 0.06;
  pointer-events: none;
}

.auth-brand-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.auth-brand .brand {
  color: var(--brand-ink);
}

.auth-brand .brand-mark {
  color: var(--brand-ink);
}

.auth-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #b7bcc5;
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.auth-brand-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #cdf47f;
  box-shadow: 0 0 8px rgba(205, 244, 127, 0.8);
}

.auth-brand-content {
  position: relative;
  z-index: 1;
  max-width: 520px;
  display: grid;
  gap: 24px;
  padding: 24px 0;
}

.auth-brand-content .eyebrow {
  color: #cdf47f;
}

.auth-brand h2 {
  color: var(--brand-ink);
  font-size: clamp(29px, 3.3vw, 44px);
  letter-spacing: -0.05em;
  line-height: 1.03;
  max-width: 16ch;
}

.auth-benefits {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 13px;
}

.auth-benefits li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: #a8acb4;
  font-size: 13.5px;
  line-height: 1.5;
}

.auth-benefits span {
  display: inline-grid;
  place-items: center;
  min-height: 22px;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid rgba(205, 244, 127, 0.22);
  background: rgba(205, 244, 127, 0.07);
  color: #cdf47f;
  font-family: var(--font-mono);
  font-size: 10px;
  text-align: center;
}

.auth-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.auth-specs span {
  padding: 4px 9px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #8f939c;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.01em;
}

.auth-brand-card {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.028);
  backdrop-filter: blur(6px);
  padding: 14px 16px;
  display: grid;
  gap: 2px;
  max-width: 420px;
}

.auth-brand-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  font-size: 10.5px;
  color: var(--brand-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  font-size: 11.5px;
  color: #c7cbd2;
}

.auth-brand-row code {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.06);
  color: #a9aeb8;
  font-size: 10px;
}

.auth-brand-row .ok {
  color: #9ade9a;
  font-size: 10px;
  font-family: var(--font-mono);
}

.auth-brand-foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: #6c6f77;
  font-size: 10.5px;
}

.auth-brand-foot a {
  color: #8f939c;
}

.auth-brand-foot a:hover {
  color: #f3f1ea;
}

/* ---------------- responsivo ---------------- */

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

  .auth-brand {
    display: none;
  }

  .auth-main {
    padding: 20px 22px;
  }

  .auth-content {
    padding: 36px 0 48px;
  }
}

@media (max-width: 520px) {
  .auth-main {
    padding: 16px 18px;
  }

  .auth-content {
    padding: 28px 0 36px;
  }

  .auth-content h1 {
    font-size: 29px;
  }

  .auth-form .input {
    height: 44px;
  }

  .auth-foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------------- cartão de convite ---------------- */

.invite-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 18px;
  margin: 24px 0 26px;
  box-shadow: var(--shadow-sm);
}

.invite-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.invite-card-head > div {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.invite-card-head strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.invite-meta {
  display: grid;
  gap: 0;
  margin: 16px 0 0;
  border-top: 1px solid var(--border-faint);
}

.invite-meta > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-faint);
  font-size: 12.5px;
}

.invite-meta > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.invite-meta dt {
  color: var(--faint);
}

.invite-meta dd {
  margin: 0;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
