:root {
  color-scheme: light;
  --input-line: #5B6B77;
  --accent-hover: #0067AA;
  --ground: #f3f4f6;
  --surface: #fff;
  --soft: #f7f8fa;
  --ink: #070f26;
  --muted: #5b6b77;
  --line: #c5cbd2;
  --accent: #0072bc;
  --accent-ink: #fff;
  --error: #b22000;
  --success: #006e75;
  --shadow: 0 24px 70px rgba(7, 15, 38, 0.12);
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Archivo", system-ui, sans-serif;
}
:root[data-mode="dark"] {
  color-scheme: dark;
  --input-line: #8D9BB0;
  --accent-hover: #42B3FC;
  --ground: #070f26;
  --surface: #0e1a33;
  --soft: #13213d;
  --ink: #f2f4f7;
  --muted: #b8c2cf;
  --line: #40506d;
  --accent: #19a3fc;
  --accent-ink: #070f26;
  --error: #ff6b45;
  --success: #00dfed;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100svh;
  background: var(--ground);
  color: var(--ink);
  font: 15px/1.5 var(--body);
  display: flex;
  flex-direction: column;
  caret-color: var(--accent);
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
a {
  color: var(--accent);
  text-underline-offset: 4px;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
::selection {
  background: var(--accent);
  color: var(--accent-ink);
}
html {
  scrollbar-color: var(--line) var(--ground);
}
[hidden] {
  display: none !important;
}
.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 30px clamp(24px, 5vw, 80px);
}
.brand {
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 24px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.brand-logo {
  display: block;
  width: 104px;
  height: 24px;
  background: #0072bc;
  mask: url("/logo.png") left center/contain no-repeat;
  -webkit-mask: url("/logo.png") left center/contain no-repeat;
}
:root[data-mode="dark"] .brand-logo {
  background: white;
}
.brand > span:last-child {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.theme-switch {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px;
  min-height: 40px;
  color: var(--muted);
  font-size: 12px;
}
.theme-switch:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.auth-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(1040px, calc(100% - 64px));
  min-height: 596px;
  margin: auto;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.form-panel {
  padding: 64px 56px;
  display: flex;
  align-items: center;
}
.form-inner {
  width: 100%;
  max-width: 390px;
  margin: auto;
}
h1 {
  font: 800 clamp(30px, 3.3vw, 40px)/1.1 var(--display);
  font-stretch: 112%;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  text-wrap: balance;
}
.subtitle {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 14px;
  max-width: 35ch;
}
form > label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin: 20px 0 8px;
}
form > label:first-child {
  margin-top: 0;
}
input:not([type="checkbox"]) {
  width: 100%;
  height: 48px;
  border: 1px solid var(--input-line);
  border-radius: 6px;
  background: var(--soft);
  color: var(--ink);
  padding: 0 14px;
  font-size: 15px;
}
input::placeholder {
  color: var(--muted);
  opacity: 1;
}
input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}
.password-wrap {
  position: relative;
}
.password-wrap input {
  padding-right: 52px;
}
.eye {
  position: absolute;
  right: 2px;
  top: 2px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}
.eye:hover {
  color: var(--accent);
}
.eye svg {
  width: 21px;
  height: 21px;
  vertical-align: middle;
}
.form-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 18px 0 24px;
  font-size: 12px;
}
.remember {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  min-height: 32px;
}
.remember input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  margin: 0;
}
.text-button {
  border: 0;
  background: transparent;
  padding: 8px 0;
  min-height: 36px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}
.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.primary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  border: 0;
  border-radius: 6px;
  width: 100%;
  min-height: 48px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 16px;
  transition: background-color 0.18s;
}
.primary:hover {
  background: var(--accent-hover);
}
.primary span {
  font-size: 20px;
  font-weight: 400;
}
.invite-note {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin: 16px 0 0;
}
.message {
  font-size: 13px;
  line-height: 1.5;
  color: var(--success);
  margin: 14px 0 0;
}
.message:empty {
  display: none;
}
.message[data-error="true"] {
  color: var(--error);
}
.field-hint {
  color: var(--muted);
  font-size: 12px;
  margin: 8px 0 18px;
}
#recover-form .primary,
#password-form .primary {
  margin-top: 24px;
}
.back {
  display: block;
  margin: 14px auto 0;
}
.story-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 40px;
  background: #070f26;
  color: #fff;
  border-radius: 12px;
  margin: 8px 8px 8px 0;
}
.story-panel .brand-logo {
  background: white;
  width: 88px;
  height: 21px;
}
.story-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.private-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #b8c2cf;
}
.private-label svg {
  width: 14px;
  height: 14px;
}
.story-body {
  margin: 60px 0;
}
.story-body h2 {
  font: 700 clamp(32px, 3.5vw, 44px)/1.1 var(--display);
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  font-stretch: 112%;
}
.story-body p {
  font-size: 14px;
  line-height: 1.7;
  color: #b8c2cf;
  margin: 0;
}
.story-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  line-height: 1.6;
  color: #b8c2cf;
}
.brand-line {
  display: block;
  width: 64px;
  height: 4px;
  background: #0072bc;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1040px, calc(100% - 64px));
  margin: 24px auto 30px;
  font-size: 11px;
  color: var(--muted);
}
@media (prefers-reduced-motion: no-preference) {
  .auth-card[data-mode="recover"] .form-inner,
  .auth-card[data-mode="password"] .form-inner {
    animation: reveal 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }
  @keyframes reveal {
    from {
      transform: translateX(12px);
      opacity: 0.6;
    }
    to {
      transform: none;
      opacity: 1;
    }
  }
}
@media (max-width: 820px) {
  .brand-bar {
    padding: 22px 24px;
  }
  .brand > span:last-child {
    display: none;
  }
  .auth-card {
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
    min-height: 0;
    margin: 16px auto;
  }
  .form-panel {
    padding: 36px 28px;
  }
  .form-inner {
    max-width: 430px;
  }
  .story-panel {
    margin: 0 8px 8px;
    padding: 24px;
    border-radius: 10px;
  }
  .story-top {
    display: none;
  }
  .story-body {
    margin: 0;
  }
  .story-body h2 {
    font-size: 25px;
    margin-bottom: 12px;
  }
  .story-body h2 br {
    display: none;
  }
  .story-body h2 br::after {
    content: " ";
  }
  .story-body h2 {
    max-width: 23ch;
  }
  .story-bottom {
    margin-top: 24px;
  }
  .page-footer {
    width: calc(100% - 48px);
    margin-top: 12px;
  }
  .story-body h2 br {
    display: initial;
  }
  .story-body h2 br::after {
    content: none;
  }
}
@media (max-width: 380px) {
  .form-panel {
    padding: 30px 22px;
  }
  .form-options {
    align-items: flex-start;
    flex-direction: column;
  }
  .brand-bar {
    padding: 18px 20px;
  }
  .page-footer {
    flex-direction: column;
    gap: 4px;
  }
}
@media (forced-colors: active) {
  .brand-logo {
    background: CanvasText;
  }
  .story-panel {
    border: 1px solid CanvasText;
  }
}
/* Área de gestão mantém os mesmos campos e superfícies do login. */
.access-main {
  width: min(920px, calc(100% - 40px));
  margin: 32px auto 64px;
}
.access-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.access-head h1 {
  font-size: 32px;
  margin-bottom: 12px;
}
.access-head p {
  color: var(--muted);
  margin: 0;
}
.invite-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  padding: 24px 0;
  border-block: 1px solid var(--line);
}
.invite-form div {
  flex: 1 1 260px;
}
.invite-form label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 8px;
}
.invite-form .primary {
  width: auto;
}
.members {
  list-style: none;
  padding: 0;
}
.member {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.member strong {
  display: block;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.member small {
  color: var(--muted);
}
.member button {
  font-size: 13px;
}
.member-actions {
  display: flex;
  gap: 16px;
}
.danger {
  color: var(--error);
}
