/* Telas de entrada (issue #10): vitrine à esquerda, formulário em coluna à direita. */
.auth-page { font-size: 15px; background: var(--surface); min-height: 100svh; }
.auth-shell { display: grid; grid-template-columns: minmax(0, 1fr) clamp(380px, 30vw, 500px); min-height: 100svh; }

.auth-showcase { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: clamp(24px, 3.4vw, 56px); background: radial-gradient(900px 600px at 80% 0%, rgba(35, 210, 226, .22), transparent 60%), radial-gradient(800px 600px at 0% 100%, rgba(97, 93, 250, .22), transparent 60%), var(--bg); }
.auth-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.auth-brand:hover { text-decoration: none; }
.auth-brand .brand-name { font-weight: 900; font-size: 1.5rem; letter-spacing: -.03em; }
.auth-brand .brand-name b { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-brand .brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.auth-brand .brand-slogan { font-size: .78rem; font-weight: 700; color: var(--text-2); margin-top: 3px; }
.auth-phrase { margin: clamp(14px, 4vh, 64px) 0 0; font-size: clamp(2rem, min(3.6vw, 7vh), 3.8rem); line-height: 1.05; letter-spacing: -.035em; max-width: 14ch; }
.auth-phrase em, .auth-phrase-mobile em { font-style: normal; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

.auth-collage { position: relative; flex: 1; min-height: 340px; margin-top: clamp(16px, 3vh, 32px); }
.auth-collage figure { position: absolute; margin: 0; border-radius: 24px; overflow: hidden; box-shadow: 0 24px 60px rgba(47, 48, 82, .22); border: 6px solid var(--surface); }
.auth-collage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.col-main { left: 6%; top: 4%; width: 58%; aspect-ratio: 3 / 2; transform: rotate(-3deg); }
.col-side { right: 4%; bottom: 6%; width: 42%; aspect-ratio: 3 / 2; transform: rotate(4deg); }
.float-chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(10px); box-shadow: var(--shadow-lg); border: 1px solid var(--border); animation: auth-float 7s ease-in-out infinite; }
.float-chip b { display: block; font-size: .9rem; }
.float-chip small { display: block; color: var(--text-2); font-size: .76rem; }
.chip-badge { right: 8%; top: 2%; }
.chip-ai { left: 2%; bottom: 14%; animation-delay: -2.4s; }
.chip-cost { left: 46%; top: 50%; animation-delay: -4.6s; }
.float-level { position: absolute; right: 44%; bottom: 2%; display: flex; flex-direction: column; align-items: center; gap: 6px; animation: auth-float 8s ease-in-out infinite -1s; }
.float-level .ring { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: #fff; background: var(--gradient); box-shadow: 0 0 0 5px var(--surface), 0 0 0 9px #615dfa55, var(--shadow-lg); }
.float-level small { font-weight: 800; color: var(--text-2); background: var(--surface); padding: 2px 10px; border-radius: 99px; box-shadow: var(--shadow); }
@keyframes auth-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.auth-panel { display: flex; flex-direction: column; border-left: 1px solid var(--border); background: var(--surface); }
.auth-form-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 3vw, 48px); max-width: 460px; width: 100%; margin: 0 auto; }
.auth-brand-mobile, .auth-phrase-mobile { display: none; }
.auth-title { font-size: 1.15rem; margin: 0 0 6px; }
.auth-sub { color: var(--text-2); margin: 0 0 14px; font-size: .9rem; }
.auth-form { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.auth-field { position: relative; }
.auth-field input { width: 100%; height: 54px; padding: 22px 46px 6px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 1rem; transition: border-color .15s, box-shadow .15s; }
.auth-field input:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.auth-field label { position: absolute; left: 15px; top: 17px; color: var(--muted); font-size: .95rem; pointer-events: none; transition: .15s; }
.auth-field input:focus + label, .auth-field input:not(:placeholder-shown) + label { top: 7px; font-size: .72rem; font-weight: 700; color: var(--primary); }
.auth-field.has-error input { border-color: var(--danger); }
.auth-eye { position: absolute; right: 8px; top: 9px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); border-radius: 8px; cursor: pointer; }
.auth-eye:hover { color: var(--primary); }
.auth-error { margin: 5px 2px 0; color: var(--danger); font-size: .8rem; font-weight: 600; }
.auth-hint { margin: 5px 2px 0; color: var(--muted); font-size: .78rem; }
.auth-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-submit { height: 48px; border-radius: 99px; font-size: 1rem; font-weight: 800; justify-content: center; }
.auth-submit:disabled { opacity: .45; cursor: not-allowed; filter: saturate(.6); }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .86rem; }
.auth-terms { font-size: .82rem; align-items: flex-start; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px; color: var(--muted); font-size: .8rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-social { display: grid; gap: 8px; }
.auth-social-btn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 46px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font-weight: 700; text-decoration: none; }
.auth-social-btn:hover { border-color: var(--primary); text-decoration: none; }
.auth-create { margin-top: 18px; height: 46px; justify-content: center; border-radius: 99px; border: 1.5px solid var(--primary); color: var(--primary); background: transparent; font-weight: 800; font-size: .95rem; }
.auth-create:hover { background: var(--primary-50); text-decoration: none; }
.auth-note { display: flex; align-items: center; gap: 6px; margin: 16px 0 0; color: var(--muted); font-size: .8rem; }
.auth-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; padding: 14px; border-top: 1px solid var(--border); font-size: .76rem; color: var(--muted); }
.auth-foot a, .auth-foot .cookie-link { color: var(--muted); }

/* desktop: a tela de entrada cabe inteira na janela (sem rolagem); a colagem se mede pela ALTURA disponível */
@media (min-width: 961px) {
  .auth-shell { height: 100svh; min-height: 0; }
  .auth-showcase { height: 100svh; }
  .auth-panel { height: 100svh; overflow-y: auto; scrollbar-width: thin; }
  .auth-collage { min-height: 0; }
  .col-main { width: auto; height: 72%; max-width: 64%; }
  .col-side { width: auto; height: 56%; max-width: 48%; }
}
@media (max-width: 960px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr); }
  .auth-showcase { display: none; }
  .auth-panel { border-left: 0; min-height: 100svh; background: radial-gradient(600px 300px at 50% 0%, rgba(97, 93, 250, .14), transparent 70%), var(--surface); }
  .auth-brand-mobile { display: inline-flex; margin-bottom: 12px; }
  .auth-phrase-mobile { display: block; margin: 0 0 18px; font-size: 1.5rem; font-weight: 900; line-height: 1.12; letter-spacing: -.03em; }
}
@media (max-width: 420px) { .auth-pair { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .float-chip, .float-level { animation: none; } }
