@font-face {
  font-family: Riviera;
  src: url("/assets/fonts/RivieraNights-Regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Riviera;
  src: url("/assets/fonts/RivieraNights-Medium.woff") format("woff");
  font-weight: 500;
  font-display: swap;
}
:root {
  --paper: var(--leo-bg);
  --ink: var(--leo-text);
  --muted: var(--leo-muted);
  --line: var(--leo-line);
  --green: var(--leo-action-fill);
  --gold: var(--leo-editorial-on-surface);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    400 15px/1.6 Riviera,
    Arial,
    sans-serif;
}
button,
input,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: var(--leo-action-text);
  text-underline-offset: 4px;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  outline-offset: 5px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--leo-focus);
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
[hidden] {
  display: none !important;
}
.auth-shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 20px;
}
.auth-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px 42px;
}
.back {
  align-self: flex-start;
  text-decoration: none;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
}
.back span {
  font-size: 19px;
}
.auth-panel {
  width: min(100%, 370px);
  margin: auto;
  padding: 48px 0;
}
.signature {
  display: block;
  width: 118px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
  margin-bottom: 34px;
}
h1 {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.045em;
  margin: 0 0 12px;
}
.intro {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 30px;
}
.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 1px solid var(--leo-control-border);
  border-radius: 5px;
  min-height: 50px;
  padding: 12px 16px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  color: var(--ink);
}
.btn:hover {
  background: var(--leo-hover);
}
.btn-primary {
  background: var(--green);
  border-color: var(--green);
  color: var(--leo-on-action);
}
.btn-primary:hover {
  background: var(--leo-action-hover);
}
.google-icon {
  width: 18px;
  height: 18px;
}
.divider {
  display: flex;
  gap: 15px;
  align-items: center;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 24px 0;
}
.divider:before,
.divider:after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
label {
  display: block;
  font-size: 12px;
  margin-bottom: 8px;
}
input {
  background: var(--leo-card);
  border: 1px solid var(--leo-control-border);
  border-radius: 5px;
  color: var(--ink);
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  font-size: 16px;
}
input::placeholder {
  color: var(--leo-muted);
}
.field {
  margin-bottom: 19px;
}
.hint {
  font-size: 11px;
  color: var(--muted);
  margin: 9px 0 0;
}
.switch {
  font-size: 12px;
  text-align: center;
  margin: 24px 0 0;
}
.privacy {
  font-size: 10px;
  color: var(--muted);
  margin-top: 36px;
  line-height: 1.8;
}
.privacy summary {
  cursor: pointer;
  min-height: 32px;
}
.privacy p {
  margin: 10px 0;
}
.auth-bottom {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.auth-aside {
  border-radius: 8px;
  background: var(--leo-surface);
  color: var(--leo-text);
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 52px;
  overflow: hidden;
  min-height: 600px;
}
.aside-top {
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.aside-center {
  margin: auto 0;
  text-align: center;
}
.aside-home {
  display: block;
  line-height: 0;
}
.aside-home:focus-visible {
  outline: 2px solid var(--leo-focus);
  outline-offset: 4px;
}
.aside-center img {
  width: min(88%, 430px);
  height: 190px;
  object-fit: contain;
}
.aside-rule {
  width: 48px;
  background: var(--leo-line);
  height: 1px;
  margin: 32px auto;
}
.aside-center p {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}
.aside-bottom {
  border-top: 1px solid var(--leo-line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--leo-muted);
  letter-spacing: 0.1em;
}
.notice {
  background: var(--leo-surface);
  padding: 12px 14px;
  border-left: 2px solid var(--leo-action-text);
  color: var(--ink);
  font-size: 12px;
  margin: 18px 0;
  overflow-wrap: anywhere;
}
.notice:empty {
  display: none;
}
.code {
  letter-spacing: 0.35em;
  text-align: center;
  font-size: 23px;
  font-variant-numeric: tabular-nums;
}
.text-btn {
  background: none;
  border: 0;
  color: var(--leo-action-text);
  padding: 10px 0;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.code-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
}
.account-detail {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  margin: 20px 0 28px;
  overflow-wrap: anywhere;
}
.account-detail dt {
  font-size: 10px;
  color: var(--muted);
}
.account-detail dd {
  margin: 5px 0 18px;
  font-size: 14px;
}
.verified {
  font-size: 11px;
  color: var(--leo-success);
}
.auth-panel:has(#account:not([hidden])) .signature {
  margin-bottom: 26px;
}
body[data-leo-page="conta"] #account[inert] {
  opacity: 0.6;
}
body[data-leo-page="conta"] #account[inert] .verified {
  visibility: hidden;
}
@media (min-width: 1500px) {
  .auth-main {
    padding: 30px 70px;
  }
  .auth-aside {
    padding: 66px;
  }
  .auth-panel {
    width: 390px;
  }
  .aside-center img {
    width: 440px;
  }
}
@media (max-width: 800px) {
  .auth-shell {
    display: block;
    padding: 0;
  }
  .auth-main {
    padding: 18px 25px;
    min-height: 100svh;
  }
  .auth-aside {
    display: none;
  }
  .auth-panel {
    padding: 38px 0 48px;
    margin: auto;
    width: min(100%, 390px);
  }
  h1 {
    font-size: 30px;
  }
  .signature {
    margin-bottom: 28px;
  }
  .auth-bottom {
    padding: 12px 0;
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .btn {
    transition: background 0.15s;
  }
}

/* Signature files stay unchanged; their presentation follows the reading surface. */
html[data-theme="light"] .signature { filter:none; }
html[data-theme="light"] .aside-center img { filter:brightness(0); }
