/* Aurora · entrar, cadastro e nova senha */
:root {
  --plum: #2a0f2e; --plum-2: #3a1a44; --paper: #fffafc; --blush: #fcf0f4;
  --rose: #d94c83; --rose-d: #b83c6c; --gold: #c9a15e; --gold-l: #e8c486;
  --ink: #2a1726; --muted: #7d6375; --line: #ecd9e2; --ok: #1f8a4c; --bad: #b4234f;
  --display: 'Bodoni Moda', 'Didot', Georgia, serif; --body: 'Jost', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16.5px/1.55 var(--body); }
img { display: block; max-width: 100%; }
a { color: var(--rose-d); }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; border-radius: 6px; }
h1 { font: 500 clamp(34px, 4vw, 50px)/1.05 var(--display); margin: 0; letter-spacing: -.01em; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: 100vh; min-height: 100dvh; }
.side { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; background: var(--plum); color: #fff; }
.side-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.side::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42, 15, 46, .55), rgba(42, 15, 46, .15) 35%, rgba(42, 15, 46, .92)); }
.side-in { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(24px, 4vw, 56px); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 500 26px/1 var(--display); }
.brand.light { color: #fff; }
.quote { margin: 0; max-width: 30ch; }
.quote blockquote { margin: 0; font: italic 400 clamp(26px, 2.6vw, 38px)/1.2 var(--display); }
.quote figcaption { margin-top: 16px; color: var(--gold-l); font-size: 15px; }

.panel { display: flex; flex-direction: column; padding: clamp(20px, 4vw, 56px) clamp(16px, 6vw, 96px); min-width: 0; }
.panel-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: clamp(24px, 6vh, 64px); }
.panel-top .brand { visibility: hidden; }
.back { color: var(--muted); text-decoration: none; font-size: 15px; }
.back:hover { color: var(--ink); }
.view { width: 100%; max-width: 560px; margin: 0 auto; }
.sub { margin: 10px 0 28px; color: var(--muted); }
form { display: grid; gap: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span:first-child, legend, .link-preview > span { font-size: 14.5px; font-weight: 500; color: #4e3448; }
input, select { width: 100%; min-height: 50px; border: 1.5px solid var(--line); border-radius: 14px; padding: 0 16px; font: inherit; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237d6375' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center; padding-right: 40px; }
input:focus, select:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px rgba(217, 76, 131, .15); }
input[aria-invalid="true"] { border-color: var(--bad); }
.pw { position: relative; display: block; }
.pw input { padding-right: 92px; }
.eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: var(--blush); color: var(--ink); border-radius: 10px; padding: 8px 12px; font: 500 13.5px var(--body); cursor: pointer; }
.hint { color: var(--muted); font-size: 13.5px; }
.hint.ok { color: var(--ok); }
.hint.bad { color: var(--bad); }
.row-end { display: flex; justify-content: flex-end; margin-top: -6px; font-size: 15px; }

.link-preview { display: grid; gap: 6px; }
.link-box { display: flex; align-items: center; min-height: 50px; border-radius: 14px; background: var(--plum); color: #f3e4ee; padding: 0 6px 0 16px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.link-box::-webkit-scrollbar { display: none; }
.link-box .host { white-space: nowrap; opacity: .8; }
.link-box input { min-height: 40px; border: 0; background: transparent; color: var(--gold-l); padding: 0 4px; font-weight: 500; min-width: 120px; flex: 1; box-shadow: none; }
.link-box input:focus { box-shadow: none; background: rgba(255, 255, 255, .08); border-radius: 8px; }
.link-preview small { color: var(--muted); font-size: 13.5px; }

.themes { border: 0; padding: 0; margin: 0; min-width: 0; }
.themes legend { margin-bottom: 8px; padding: 0; }
.theme-list { display: flex; flex-wrap: wrap; gap: 10px; }
.theme-opt { position: relative; }
.theme-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.theme-opt label { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; background: #fff; font-size: 15px; transition: border-color .15s, background .15s; }
.theme-opt .sw { width: 30px; height: 30px; border-radius: 50%; background: conic-gradient(from 210deg, var(--a) 0 50%, var(--b) 0 100%); box-shadow: 0 0 0 1px var(--line); flex: none; }
.theme-opt input:checked + label { border-color: var(--rose); background: var(--blush); box-shadow: 0 0 0 3px rgba(217, 76, 131, .15); }
.theme-opt input:focus-visible + label { outline: 3px solid var(--rose); outline-offset: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border-radius: 999px; font: 500 16.5px/1 var(--body); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; width: 100%; transition: background .2s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-rose { background: var(--rose); color: #fff; box-shadow: 0 10px 30px -12px rgba(217, 76, 131, .7); }
.btn-rose:hover { background: var(--rose-d); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.link-btn { background: none; border: 0; color: var(--rose-d); font: inherit; text-decoration: underline; cursor: pointer; justify-self: center; padding: 6px; }
.msg { margin: 0; padding: 12px 14px; border-radius: 12px; background: #fde8ee; color: var(--bad); font-size: 15px; }
.msg.ok { background: #e7f6ec; color: var(--ok); }
.alt { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 14px; text-align: center; }
.alt p { margin: 0; color: var(--muted); }
.terms { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
.code { font: 500 26px/1 var(--body); letter-spacing: 10px; text-align: center; }
.panel-foot { margin-top: auto; padding-top: 40px; text-align: center; color: var(--muted); font-size: 14px; }
.panel-foot a { color: var(--ink); font-weight: 500; }

@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .side { display: none; }
  .panel-top .brand { visibility: visible; }
  .panel { background: radial-gradient(700px 320px at 100% 0, #f6dbe7, transparent 70%), var(--paper); }
}
@media (max-width: 560px) {
  .grid2 { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
