:root { color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #11131d; color: #f7f4ef; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input { font: inherit; }
a { color: inherit; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 1fr) minmax(400px, 0.84fr); }
.auth-context { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 28px; min-height: 100vh; padding: clamp(40px, 9vw, 128px); overflow: hidden; background: #1e315f; }
.auth-context::before { content: ""; position: absolute; width: min(62vw, 760px); aspect-ratio: 1; right: -26%; bottom: -34%; border: 1px solid rgb(255 255 255 / 18%); border-radius: 50%; box-shadow: 0 0 0 42px rgb(255 255 255 / 4%), 0 0 0 126px rgb(255 255 255 / 3%); }
.auth-context::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgb(255 255 255 / 10%), transparent 42%); pointer-events: none; }
.auth-context > * { position: relative; z-index: 1; }
.auth-context-logo { width: 58px; height: auto; filter: none; opacity: .96; }
.auth-context-logo--parceiro { width: min(190px, 42vw); opacity: 1; }
.auth-context-label { margin: 0 0 10px; color: #bdd4ff; font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.auth-context h1 { max-width: 12ch; margin: 0; color: #fff; font-size: clamp(40px, 5vw, 68px); font-weight: 700; letter-spacing: -.045em; line-height: .98; }
.auth-context p:not(.auth-context-label) { max-width: 38ch; margin: 18px 0 0; color: #dce8ff; font-size: 16px; line-height: 1.55; }
.auth-context-note { display: flex; align-items: center; gap: 9px; color: #dce8ff; font-size: 13px; }
.auth-context-note i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #98d9bc; box-shadow: 0 0 0 4px rgb(152 217 188 / 18%); }
.auth-panel { display: flex; flex-direction: column; justify-content: center; width: min(100%, 540px); min-height: 100vh; margin: auto; padding: 44px clamp(28px, 6vw, 72px); }
.auth-brand { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; color: #aaaebe; font-size: 13px; font-weight: 600; text-decoration: none; }
.auth-brand img { width: 30px; height: 30px; object-fit: contain; }
#auth-content { margin: 52px 0 28px; }
.auth-heading { margin: 0 0 8px; color: #f7f4ef; font-size: 30px; line-height: 1.15; letter-spacing: -.03em; }
.auth-intro { margin: 0 0 30px; color: #aaaebe; font-size: 14px; line-height: 1.55; }
.auth-form { display: grid; gap: 18px; }
.auth-field { display: grid; gap: 7px; }
.auth-field label { color: #c7cad5; font-size: 12px; font-weight: 600; }
.auth-field input { width: 100%; min-height: 48px; padding: 12px 13px; border: 1px solid #3d4254; border-radius: 8px; outline: 0; background: #1a1d29; color: #f7f4ef; transition: border-color .18s, box-shadow .18s; }
.auth-field input:focus { border-color: var(--auth-accent); box-shadow: 0 0 0 3px var(--auth-focus); }
.auth-field input:disabled { cursor: not-allowed; color: #9da1b1; }
.auth-field input::placeholder { color: #777d91; }
.auth-submit { min-height: 48px; margin-top: 6px; border: 0; border-radius: 8px; background: var(--auth-accent); color: #fff; cursor: pointer; font-weight: 700; transition: filter .18s, transform .18s; }
.auth-submit:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.auth-submit:disabled { cursor: wait; opacity: .7; }
.auth-message { margin: 0 0 18px; padding: 11px 12px; border: 1px solid; border-radius: 8px; font-size: 13px; line-height: 1.45; }
.auth-message.success { border-color: #4e997a; background: rgb(78 153 122 / 13%); color: #b2e6ce; }
.auth-link { width: fit-content; margin-top: 2px; border: 0; padding: 0; background: none; color: var(--auth-link); cursor: pointer; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.auth-support { margin: 0; color: #858b9e; font-size: 12px; }
.auth-support a { color: #c7cad5; }
:focus-visible { outline: 2px solid var(--auth-accent); outline-offset: 3px; }
body[data-perfil="cliente"] { --auth-accent: #4774cf; --auth-focus: rgb(71 116 207 / 25%); --auth-link: #8fb2ff; }
body[data-perfil="parceiro"] { --auth-accent: #c9633d; --auth-focus: rgb(201 99 61 / 25%); --auth-link: #edb38d; }
body[data-perfil="parceiro"] .auth-context { background: #5a2f24; }
body[data-perfil="parceiro"] .auth-context-label { color: #f0bd9a; }
body[data-perfil="parceiro"] .auth-context p:not(.auth-context-label), body[data-perfil="parceiro"] .auth-context-note { color: #ffe1cf; }
@media (max-width: 780px) { .auth-shell { grid-template-columns: 1fr; } .auth-context { min-height: auto; padding: 36px 28px 38px; gap: 18px; } .auth-context-logo { width: 52px; } .auth-context-logo--parceiro { width: 126px; } .auth-context h1 { font-size: 38px; } .auth-context p:not(.auth-context-label) { margin-top: 12px; font-size: 14px; } .auth-context-note { display: none; } .auth-panel { min-height: auto; padding: 36px 28px 44px; } #auth-content { margin: 38px 0 26px; } }
