:root {
  --simple-shadow: 0 18px 55px rgba(16, 45, 39, .10);
}

.auth-shell {
  min-height: calc(100vh - 150px);
  display: grid;
  grid-template-columns: minmax(0, 420px);
  place-content: center;
  padding: 40px 20px;
}

.auth-card {
  max-width: none;
  padding: 42px;
  border-radius: 12px;
  box-shadow: var(--simple-shadow);
}

.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 34px;
  font-weight: 800;
  letter-spacing: .12em;
}

.login-brand b { color: var(--gold); }

.auth-card h1 {
  margin: 0 0 8px;
  text-align: center;
  font: 400 38px/1.1 Georgia, serif;
}

.auth-card > p {
  margin: 0 0 30px;
  text-align: center;
  line-height: 1.5;
}

.auth-card label {
  display: block;
  margin: 18px 0 8px;
}

.auth-card input { border-radius: 6px; }

.auth-card .button-block {
  min-height: 50px;
  margin-top: 24px;
  border-radius: 6px;
}

.login-help {
  display: block;
  margin-top: 20px;
  color: var(--muted);
  text-align: center;
}

.portal-shell {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 95px) 0 80px;
}

.portal-heading { margin-bottom: 38px; }

.portal-heading .eyebrow { margin-bottom: 12px; }

.portal-heading h1 {
  margin: 0 0 12px;
  font: 400 clamp(36px, 5vw, 58px)/1.1 Georgia, serif;
  letter-spacing: -.03em;
}

.portal-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.app-card {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 10px 35px rgba(16, 45, 39, .06);
}

.app-card.cotacoes {
  border-color: var(--ink);
  background: var(--ink);
  color: #fffdf8;
}

.app-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 32px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 24px;
}

.app-copy > span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
}

.app-copy h2 {
  margin: 12px 0 16px;
  font: 400 36px/1 Georgia, serif;
}

.app-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.app-card.cotacoes .app-copy p { color: rgba(255, 253, 248, .68); }

.app-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  margin-top: auto;
  padding: 0 18px;
  border-radius: 6px;
  background: var(--ink);
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.app-card.cotacoes .app-button {
  background: var(--gold);
  color: var(--ink);
}

.app-button:hover { filter: brightness(1.08); }
.app-button.disabled { opacity: .62; }

.access-admin { max-width: 1280px; }
.access-intro { max-width: 820px; color: var(--muted); line-height: 1.6; }
.access-success { margin: 24px 0; padding: 14px 16px; border-left: 4px solid #27815d; background: #e5f4ec; color: #17573f; }
.access-table-wrap { margin-top: 28px; overflow-x: auto; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 12px 35px rgba(16,45,39,.06); }
.access-table { width: 100%; border-collapse: collapse; }
.access-table th,.access-table td { padding: 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.access-table th { background: rgba(16,45,39,.055); color: #8d6a32; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.access-table tbody tr:last-child td { border-bottom: 0; }
.access-table td small { display: block; margin-top: 4px; color: var(--muted); }
.access-limit-form { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.access-limit-form input { width: 84px; min-height: 44px; }
.access-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-top: 54px; }
.access-section-heading .eyebrow { margin-bottom: 8px; }
.access-section-heading h2 { margin: 0; font: 400 36px/1.1 Georgia,serif; }
.access-section-heading small { color: var(--muted); }
.access-device { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }

@media (max-width: 760px) {
  .auth-shell { min-height: calc(100vh - 130px); }
  .auth-card { padding: 32px 24px; }
  .portal-shell { width: min(100% - 28px, 1100px); padding-top: 42px; }
  .app-grid { grid-template-columns: 1fr; }
  .app-card { min-height: 320px; padding: 28px; }
  .access-section-heading { align-items: start; flex-direction: column; }
  .access-table th,.access-table td { padding: 12px; }
}
