@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=Manrope:wght@500;600;700;800&display=swap');

/* Scopex SMS — página de cadastro, login e recuperação de senha */
:root {
  color-scheme: dark;
  --bg: #05070d;
  --text: #eef3ff;
  --text-2: #c5d0e4;
  --muted: #95a2ba;
  --faint: #8290a8;
  --border: #1a2334;
  --border-2: #25314a;
  --border-hi: #3a5286;
  --sky: #7ab8ff;
  --ink: #a9c6ff;
  --grad: linear-gradient(135deg, #3f6bff 0%, #7ab8ff 100%);
  --btn: linear-gradient(180deg, #3e69f6 0%, #2d56dd 100%);
  --green: #5fd4a8;
  --amber: #f2c46d;
  --red: #ff8f9f;
  --ease: cubic-bezier(.2, .7, .2, 1);
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { cursor: pointer; }
button { border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.auth-layout { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }

/* ------------------------------------------------------------ lado da marca */
.brand-side {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 34px 54px 26px;
  background:
    radial-gradient(ellipse at 60% 45%, rgba(63, 107, 255, .22), transparent 65%),
    radial-gradient(ellipse at 0% 100%, rgba(122, 184, 255, .1), transparent 55%),
    linear-gradient(150deg, #0b1630, #070d1c 75%);
  border-right: 1px solid #1d2a47;
}
.brand-side::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(122, 160, 230, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(122, 160, 230, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 80%);
}
.brand { position: relative; z-index: 2; display: inline-flex; align-self: flex-start; }
.brand img { display: block; width: 184px; height: auto; }
.brand-content { position: relative; z-index: 1; margin: auto 0; padding: 30px 0; }
.overline { font-size: 12px; letter-spacing: .16em; color: var(--ink); font-weight: 700; }
.brand-content h1 { font: 800 clamp(32px, 3.3vw, 50px)/1.15 Manrope, sans-serif; letter-spacing: -.03em; margin: 16px 0; }
.brand-content h1 span { background: linear-gradient(90deg, #7ab8ff, #cfe2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-content > p { font-size: 16px; line-height: 1.7; color: #a9b8d2; max-width: 430px; margin: 0; }

.auth-illustration { position: relative; height: 330px; max-width: 465px; margin: 18px auto 6px; }
.ring { position: absolute; width: 280px; height: 280px; top: 20px; left: calc(50% - 140px); border: 1px solid rgba(122, 160, 230, .2); border-radius: 50%; }
.ring-two { inset: -15px auto auto calc(50% - 175px); width: 350px; height: 350px; border-style: dashed; }
.phone {
  position: absolute; left: calc(50% - 81px); top: 12px;
  width: 162px; height: 278px; padding: 42px 10px 20px;
  border: 5px solid #4e6fb0; border-right-color: #93b2e6; border-bottom-color: #7c9fd8; border-radius: 29px;
  background: linear-gradient(155deg, #23437f, #0c1631);
  box-shadow: 25px 20px 65px rgba(1, 7, 19, .55), inset 0 0 35px rgba(63, 107, 255, .3);
  transform: rotate(10deg);
}
.phone-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 58px; height: 13px; border-radius: 20px; background: #0a1328; }
.phone-app { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; color: #d0ddf3; }
.phone-app img { filter: drop-shadow(0 8px 18px rgba(63, 107, 255, .6)); }
.phone-message {
  position: relative; margin: 16px -34px 0; padding: 13px; border-radius: 12px;
  background: linear-gradient(125deg, rgba(36, 64, 120, .97), rgba(24, 44, 88, .97));
  border: 1px solid rgba(140, 175, 255, .5);
  box-shadow: 0 12px 23px rgba(7, 17, 35, .45);
  transform: rotate(-10deg);
}
.phone-message > div { display: flex; align-items: center; gap: 5px; font-size: 10px; color: #d4e1f7; }
.phone-message .now { margin-left: auto; font-size: 9px; color: #a5bbdc; }
.check-dot { color: var(--green); }
.phone-message strong { display: block; font: 800 24px Manrope, sans-serif; letter-spacing: .12em; margin: 8px 0 3px; }
.phone-message small { font-size: 10px; color: #a9bfe0; }
.phone-line { width: 90px; height: 5px; margin: 20px 0 7px; border-radius: 3px; background: rgba(160, 195, 255, .3); }
.phone-line.short { width: 55px; margin: 0; background: rgba(160, 195, 255, .18); }
.phone-bottom { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 48px; height: 4px; border-radius: 4px; background: rgba(160, 195, 255, .4); }
.floating-chip {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 9px;
  padding: 10px 13px; border-radius: 12px;
  border: 1px solid rgba(122, 160, 230, .4);
  background: linear-gradient(120deg, rgba(28, 49, 92, .95), rgba(18, 33, 66, .95));
  color: #cddbf3; font-size: 12px;
  box-shadow: 0 10px 30px rgba(3, 9, 26, .45);
}
.chip-top { left: -5px; top: 58px; transform: rotate(-6deg); }
.chip-bottom { right: 0; bottom: 25px; transform: rotate(-5deg); }
.chip-icon { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 9px; background: var(--grad); color: #06122e; font-size: 15px; font-weight: 800; }
.chip-icon.check { background: rgba(95, 212, 168, .2); color: var(--green); }
.chip-bottom small { display: block; font-size: 10px; margin-top: 3px; color: #93a9cc; }
.spark { position: absolute; color: var(--sky); font-size: 25px; }
.spark-one { right: 50px; top: 37px; }
.spark-two { left: 90px; bottom: 24px; font-size: 35px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-top: 8px; }
.feature-icon { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; margin-bottom: 10px; background: rgba(63, 107, 255, .16); border: 1px solid rgba(91, 134, 255, .35); color: var(--sky); }
.feature-icon svg { width: 19px; height: 19px; }
.features strong { display: block; font-size: 14px; font-weight: 600; color: #dbe5f6; }
.features p { margin: 4px 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.brand-footer { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; font-size: 13px; color: var(--faint); }
.brand-footer nav { display: flex; gap: 16px; }
.brand-footer a { color: var(--ink); }
.brand-footer a:hover { color: #fff; }

/* ------------------------------------------------------------ formulário */
.form-side {
  display: flex; flex-direction: column;
  padding: 30px 56px 22px;
  background: radial-gradient(ellipse at 100% 0%, rgba(63, 107, 255, .12), transparent 60%), var(--bg);
}
.top-note { display: flex; align-items: center; justify-content: flex-end; gap: 12px; font-size: 14px; color: var(--muted); }
.mobile-logo { display: none; margin-right: auto; }
.mobile-logo img { display: block; }
.top-note button { color: var(--ink); font-size: 14px; font-weight: 600; border: 1px solid #34508a; padding: 9px 14px; border-radius: 10px; transition: background .16s; }
.top-note button:hover { background: rgba(63, 107, 255, .14); color: #fff; }
.form-container { width: 100%; max-width: 420px; margin: auto; padding: 30px 0; }
.form-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .14em; font-weight: 700; color: var(--ink); }
.mini-square { display: block; width: 24px; height: 24px; }
.form-container h2 { font: 800 36px/1.15 Manrope, sans-serif; letter-spacing: -.03em; margin: 16px 0 6px; }
.form-description { font-size: 16px; color: var(--muted); margin: 0 0 24px; line-height: 1.6; }

.auth-tabs { display: flex; padding: 4px; margin: 0 0 22px; border-radius: 13px; background: #0b111e; border: 1px solid var(--border-2); }
.auth-tabs button { width: 50%; padding: 11px; border-radius: 10px; font-size: 15px; font-weight: 600; color: #a3b0c7; transition: background .2s, color .2s; }
.auth-tabs button:hover { color: #fff; }
.auth-tabs .active { color: #fff; background: var(--btn); box-shadow: 0 6px 16px -6px rgba(63, 107, 255, .7); }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.label-row { display: flex; align-items: center; justify-content: space-between; }
.label-row button { font-size: 13px; margin-bottom: 8px; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap input {
  width: 100%; padding: 13px 14px 13px 42px; border-radius: 12px;
  background: #080c16; border: 1px solid var(--border-2); color: var(--text); font-size: 15px;
  transition: border-color .16s, box-shadow .16s;
}
.input-wrap input:hover { border-color: #33446a; }
.input-wrap input:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(122, 184, 255, .25); }
.input-wrap input::placeholder { color: #6f7d95; }
.input-wrap input[name=password], .input-wrap input[name=confirm] { padding-right: 84px; }
.field-icon { position: absolute; left: 14px; z-index: 1; display: flex; color: #7488a8; pointer-events: none; }
.field-icon svg { width: 17px; height: 17px; }
.input-wrap:focus-within .field-icon { color: var(--sky); }
.show-password { position: absolute; right: 6px; padding: 7px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
.show-password:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.caps-warning { margin: 7px 0 0; font-size: 13px; color: var(--amber); }
.password-hint { display: flex; align-items: center; gap: 12px; margin-top: 9px; }
.strength { display: flex; gap: 4px; flex: 0 0 96px; }
.strength i { display: block; height: 4px; width: 21px; border-radius: 5px; background: #1f2a40; transition: background .25s; }
.strength i.on { background: var(--sky); }
.strength[data-score="1"] i.on { background: #ff8f9f; }
.strength[data-score="2"] i.on { background: #f2c46d; }
.strength[data-score="3"] i.on { background: #7ab8ff; }
.strength[data-score="4"] i.on { background: #5fd4a8; }
.password-hint small { font-size: 13px; color: var(--muted); }
.match-hint { display: block; min-height: 0; margin-top: 7px; font-size: 13px; }
.match-hint:empty { display: none; }
.match-hint.ok { color: var(--green); }
.match-hint.bad { color: var(--amber); }

.terms { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0; font-size: 14px; line-height: 1.6; color: var(--muted); cursor: pointer; }
.terms input { appearance: none; flex-shrink: 0; width: 20px; height: 20px; margin: 1px 0 0; border-radius: 6px; border: 1px solid #3b5179; background: #0b1322; cursor: pointer; display: grid; place-items: center; transition: all .15s; }
.terms input:checked { background: var(--btn); border-color: #7aa0ff; }
.terms input:checked::after { content: '✓'; font-size: 13px; font-weight: 800; color: #fff; line-height: 1; }
.terms input:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
.text-button { padding: 0; color: var(--ink); font-size: inherit; font-weight: 600; }
.text-button:hover { color: #fff; }
.terms .text-button { text-decoration: underline; text-underline-offset: 3px; }
.submit-button {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px; border-radius: 12px;
  background: var(--btn); color: #fff; font-size: 16px; font-weight: 700;
  border: 1px solid rgba(140, 175, 255, .5);
  box-shadow: 0 12px 28px -10px rgba(63, 107, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .22);
  transition: transform .16s var(--ease), filter .16s;
}
.submit-button:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-1px); }
.submit-button:active:not(:disabled) { transform: scale(.985); }
.submit-button:disabled { opacity: .6; cursor: wait; }
.submit-button span { color: #cfe0ff; }
.form-divider { position: relative; display: flex; align-items: center; gap: 12px; margin: 24px 0 16px; font-size: 11px; letter-spacing: .14em; font-weight: 700; color: var(--faint); }
.form-divider::before, .form-divider::after { content: ''; flex: 1; height: 1px; background: var(--border-2); }
.form-divider span { white-space: nowrap; }
.demo-link {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px; border-radius: 12px; font-size: 15px; font-weight: 600;
  border: 1px solid var(--border-2); background: #0b111e; color: var(--text-2);
  transition: background .18s, border-color .18s, transform .18s var(--ease);
}
.demo-link:hover { background: #111a2d; border-color: var(--border-hi); color: #fff; transform: translateY(-1px); }
.demo-link span { font-size: 17px; color: var(--sky); }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 16px 0 0; font-size: 13px; color: var(--faint); text-align: center; }
.secure-note svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--sky); }
.back-login { margin-top: 18px; text-align: center; font-size: 14px; }
.form-footer { font-size: 12px; line-height: 1.7; text-align: center; color: var(--faint); }
.form-footer a { color: var(--ink); }
.notice, .feedback { margin-bottom: 18px; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.6; border: 1px solid; }
.notice { color: #f8e3b8; background: rgba(242, 196, 109, .1); border-color: rgba(242, 196, 109, .45); }
.notice strong { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 5px; font-size: 11px; letter-spacing: .12em; background: #f2c46d; color: #1b1405; }
.feedback { color: #cfe0ff; background: rgba(63, 107, 255, .12); border-color: rgba(91, 134, 255, .45); }
.feedback.success { color: #c7f2e2; background: rgba(95, 212, 168, .1); border-color: rgba(95, 212, 168, .45); }
.feedback.error { color: #ffd3da; background: rgba(255, 93, 115, .1); border-color: rgba(255, 120, 140, .5); }

/* ------------------------------------------------------------ janela de termos */
dialog { width: calc(100% - 40px); max-width: 500px; padding: 28px; border-radius: 18px; background: linear-gradient(180deg, #111a2c, #0b111e); color: var(--text); border: 1px solid var(--border-hi); box-shadow: 0 40px 120px rgba(0, 0, 0, .7); }
dialog[open] { animation: reveal .22s var(--ease); }
dialog::backdrop { background: rgba(2, 4, 10, .72); backdrop-filter: blur(6px); }
dialog > button { float: right; width: 38px; height: 38px; border-radius: 10px; font-size: 24px; line-height: 1; color: var(--muted); }
dialog > button:hover { background: rgba(255, 255, 255, .06); color: #fff; }
dialog h2 { font: 800 23px Manrope, sans-serif; margin: 4px 0 10px; }
dialog p { font-size: 15px; color: #b3c1d8; line-height: 1.75; }
.legal-more a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------ responsivo */
@media (min-width: 1550px) {
  .brand-side { padding-left: 80px; padding-right: 80px; }
  .brand-content { max-width: 640px; margin: auto; }
  .auth-illustration { height: 360px; transform: scale(1.08); margin-top: 34px; margin-bottom: 20px; }
  .form-container { max-width: 440px; }
}
@media (max-width: 1050px) {
  .brand-side, .form-side { padding: 30px; }
  .brand-content h1 { font-size: 34px; }
  .auth-illustration { transform: scale(.9); margin-left: -10px; margin-right: -10px; }
  .features { gap: 10px; }
  .chip-top { left: -12px; }
  .chip-bottom { right: -12px; }
}
@media (max-width: 760px) {
  .auth-layout { display: block; }
  .brand-side { display: none; }
  .form-side { min-height: 100vh; padding: 18px 20px 24px; }
  .top-note { flex-wrap: wrap; justify-content: flex-end; gap: 8px 10px; font-size: 13px; }
  .mobile-logo { display: block; }
  .top-note #top-prompt { display: none; }
  .top-note button { font-size: 13px; padding: 8px 11px; }
  .form-container { max-width: none; padding: 26px 0 24px; }
  .form-container h2 { font-size: 30px; }
  .form-description { font-size: 15px; }
  .input-wrap input { font-size: 16px; }
  .submit-button { padding: 16px; }
}

/* ------------------------------------------------------------ animações */
@keyframes reveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes phone-float { 0%, 100% { transform: translateY(0) rotate(10deg); } 50% { transform: translateY(-10px) rotate(8deg); } }
@keyframes chip-float { 0%, 100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(8px) rotate(-3deg); } }
@keyframes ring-breathe { 0%, 100% { opacity: .45; transform: scale(.98); } 50% { opacity: 1; transform: scale(1.03); } }
@keyframes sparkle { 0%, 100% { opacity: .4; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.1); } }
.brand { animation: reveal .6s both; }
.brand-content h1 { animation: reveal .7s .1s both; }
.brand-content > p { animation: reveal .7s .2s both; }
.form-container { animation: reveal .6s .15s both; }
.features > div { animation: reveal .6s .3s both; }
.features > div:nth-child(2) { animation-delay: .4s; }
.features > div:nth-child(3) { animation-delay: .5s; }
.phone { animation: phone-float 6s ease-in-out infinite; }
.floating-chip { animation: chip-float 6s ease-in-out infinite; }
.chip-bottom { animation-delay: -3s; }
.ring { animation: ring-breathe 7s ease-in-out infinite; }
.ring-two { animation-delay: -3.5s; }
.spark { animation: sparkle 4s ease-in-out infinite; }
.spark-two { animation-delay: -2s; }
.auth-illustration::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 360px; height: 360px; margin: -190px 0 0 -180px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(122, 184, 255, .3) 0%, rgba(63, 107, 255, .14) 40%, transparent 68%);
  animation: glow-breathe 6s ease-in-out infinite;
}
@keyframes glow-breathe { 0%, 100% { transform: scale(.92); opacity: .75; } 50% { transform: scale(1.08); opacity: 1; } }
.phone-message::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(122, 184, 255, .8), 0 0 26px rgba(122, 184, 255, .5);
  opacity: 0; animation: bubble-flash 6s ease-out 1s infinite;
}
@keyframes bubble-flash { 0% { opacity: 0; } 6% { opacity: 1; } 30%, 100% { opacity: 0; } }
.submit-button { position: relative; overflow: hidden; isolation: isolate; }
.submit-button::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, .26) 50%, transparent 68%);
  transform: translateX(-120%); transition: transform .75s var(--ease);
}
.submit-button:hover:not(:disabled)::after { transform: translateX(120%); }
.submit-button:disabled::after { transform: none; animation: sheen 1.1s linear infinite; }
@keyframes sheen { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
.submit-button span { display: inline-block; transition: transform .3s var(--ease); }
.submit-button:hover:not(:disabled) span { transform: rotate(90deg) scale(1.15); }
.auth-tabs button { transition: background .25s, color .2s, box-shadow .25s, transform .16s var(--ease); }
.auth-tabs button:active { transform: scale(.97); }
.feature-icon { transition: transform .3s var(--ease), background .2s; }
.features > div:hover .feature-icon { transform: translateY(-3px) rotate(-6deg); background: rgba(63, 107, 255, .26); }
.input-wrap input:focus { background: #0a1120; }
.feedback, .notice { animation: reveal .35s var(--ease) both; }
@media (max-width: 760px) {
  .form-side { background: radial-gradient(90% 40% at 100% 0%, rgba(63, 107, 255, .22), transparent 70%), radial-gradient(70% 30% at 0% 100%, rgba(122, 184, 255, .08), transparent 70%), var(--bg); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Cloudflare Turnstile (anti-robô) */
.captcha-box{display:flex;justify-content:center;min-height:65px;margin:4px 0 12px}
.captcha-box[hidden]{display:none}
