/* Telas de login e cadastro (prefixo .tsa-). Independente do Tailwind pré-compilado.
   As cores vêm de --p/--p2, definidas inline na view (respeita a cor do parceiro). */

.tsa { --p: #7c3aed; --p2: #4f46e5; --text: #14112b; --muted: #5f5b7a; --line: #e8e5f6;
  font-family: inherit; color: var(--text); }
.tsa *, .tsa *::before, .tsa *::after { box-sizing: border-box; }

/* campos */
.tsa-field { margin-bottom: 14px; }
.tsa-label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; color: #2b2750; }
.tsa-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.tsa-row .tsa-label { margin-bottom: 0; }
.tsa-input { display: block; width: 100%; padding: 13px 15px; border: 1px solid #d9d5ec; border-radius: 12px; background: #fff; color: var(--text); font: inherit; font-size: 15.5px; line-height: 1.3; outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.tsa-input::placeholder { color: #aaa5c4; }
.tsa-input:focus { border-color: var(--p); box-shadow: 0 0 0 4px color-mix(in srgb, var(--p) 18%, transparent); }
.tsa-input.bad { border-color: #dc2626; }
.tsa-input.dark { background: #171626; border-color: #3a3852; color: #fff; }
.tsa-input.dark::placeholder { color: #6f6a96; }
.tsa-hint { margin-top: 6px; font-size: 13px; color: var(--muted); }
.tsa-err { margin-top: 6px; font-size: 13px; color: #b91c1c; }
.tsa-pw { position: relative; }
.tsa-pw .tsa-input { padding-right: 48px; }
.tsa-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: #8b86a8; cursor: pointer; transition: background .15s ease, color .15s ease; }
.tsa-eye:hover { background: #f4f1fd; color: var(--p2); }
.tsa-eye .off { display: none; }
.tsa-eye.on .off { display: block; } .tsa-eye.on .on { display: none; }

/* botões e links */
.tsa-btn { text-decoration: none; display: flex; align-items: center; justify-content: center; width: 100%; height: 52px; margin-top: 8px; border: 0; border-radius: 12px; background: linear-gradient(135deg, var(--p), var(--p2)); color: #fff; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; box-shadow: 0 12px 26px -14px color-mix(in srgb, var(--p) 90%, transparent); transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease; }
.tsa-btn:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -14px color-mix(in srgb, var(--p) 95%, transparent); }
.tsa-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.tsa-btn.admin { background: #b91c1c; box-shadow: none; }
.tsa-link { font-size: 14px; font-weight: 600; color: var(--p2); text-decoration: none; }
.tsa-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.tsa-link.dark { color: #d4d0ee; }
.tsa-foot { margin-top: 26px; text-align: center; font-size: 14.5px; color: var(--muted); }
.tsa-foot .tsa-link { font-size: 14.5px; }
.tsa-foot.dark { color: #b9b4d8; }
.tsa-back { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 13.5px; font-weight: 500; color: #8b86a8; text-decoration: none; }
.tsa-back:hover { color: var(--p2); }
.tsa-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px; border-radius: 50%; background: #fdecec; color: #b91c1c; }
.tsa-alert { margin-bottom: 18px; padding: 13px 15px; border-radius: 12px; font-size: 14.5px; line-height: 1.45; }
.tsa-alert.bad { background: #fde8e8; color: #991b1b; border: 1px solid #f6c6c6; }
.tsa-alert.ok { background: #e7f7ee; color: #166534; border: 1px solid #bfe6cd; }

/* painel escuro do cadastro (mesmo visual do login) */
.tsa-split { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.tsa-panel { display: flex; flex-direction: column; justify-content: center; padding: 56px; color: #fff;
  background: radial-gradient(70% 70% at 100% 0%, color-mix(in srgb, var(--p) 60%, transparent) 0%, transparent 70%), radial-gradient(60% 60% at 60% 100%, color-mix(in srgb, var(--p2) 40%, transparent) 0%, transparent 70%), #0b0a1a; }
.tsa-panel-in { max-width: 440px; margin: 0 auto; width: 100%; }
.tsa-panel img { display: block; height: 58px; width: auto; max-width: 260px; object-fit: contain; }
.tsa-bar { width: 48px; height: 4px; margin: 38px 0 22px; border-radius: 4px; background: linear-gradient(90deg, var(--p), var(--p2)); }
.tsa-kicker { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #a3a0bd; }
.tsa-panel h2 { margin: 8px 0 0; font-size: 34px; line-height: 1.12; font-weight: 700; letter-spacing: -.03em; }
.tsa-panel p.lead { margin: 16px 0 0; font-size: 16.5px; line-height: 1.55; color: #cfcbe6; }
.tsa-list { margin: 30px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.tsa-list li { position: relative; padding-left: 32px; font-size: 15.5px; color: #e6e2fb; }
.tsa-list li::before { content: ""; position: absolute; left: 0; top: 1px; width: 21px; height: 21px; border-radius: 50%; background: rgba(255,255,255,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c4b5fd' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.8l4.2 4.2L18.5 8'/%3E%3C/svg%3E") center / 12px 12px no-repeat; }
.tsa-main { display: flex; align-items: center; justify-content: center; padding: 36px 24px; background: #fff; }
.tsa-card { width: 100%; max-width: 430px; }
.tsa-card h1 { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -.03em; }
.tsa-card .sub { margin: 8px 0 22px; font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.tsa-plan { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; padding: 8px 14px; border-radius: 999px; background: #f3efff; color: var(--p2); font-size: 14px; font-weight: 600; }
.tsa-plan::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--p); }
.tsa-group { margin: 22px 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8b86a8; }
.tsa-group:first-of-type { margin-top: 0; }
.tsa-terms { margin-top: 16px; font-size: 13px; line-height: 1.5; color: var(--muted); text-align: center; }
.tsa-terms a { color: var(--p2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.tsa-brand-m { display: none; margin-bottom: 26px; }
.tsa-brand-m img { display: block; height: 40px; width: auto; max-width: 220px; object-fit: contain; }

@media (max-width: 860px) {
  .tsa-split { grid-template-columns: 1fr; }
  .tsa-panel { display: none; }
  .tsa-main { padding: 32px 20px 48px; align-items: flex-start; }
  .tsa-brand-m { display: block; }
}

/* Login: mesma linguagem tranquila e direta da landing nova. */
.tsa-login { min-height: 100vh; background: #fbfafc; }
.tsa-login-panel { position: relative; overflow: hidden; isolation: isolate; }
.tsa-login-panel::before { content: ""; position: absolute; z-index: -1; inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask-image: linear-gradient(135deg, #000, transparent 78%);
  mask-image: linear-gradient(135deg, #000, transparent 78%);
}
.tsa-login-panel-in { position: relative; width: 100%; }
.tsa-login-main { background: #fbfafc !important; padding: 64px 48px !important; }
.tsa-login-card { max-width: 390px !important; }
.tsa-login-intro { align-items: flex-start; text-align: left; margin-bottom: 30px; }
.tsa-login-intro h1 { font-size: 30px; letter-spacing: -.04em; }
.tsa-login-intro p { max-width: 30ch; }
.tsa-login .tsa-input { background: #fff; border-color: #dcd9e7; border-radius: 10px; }
.tsa-login .tsa-btn { height: 50px; border-radius: 10px; box-shadow: none; }
.tsa-login .tsa-btn:hover { box-shadow: none; }
.tsa-login .tsa-foot { text-align: left; }
.tsa-login .tsa-back { margin-top: 12px; }

/* Cadastro e recuperação usam a mesma base visual, sem alterar seus fluxos. */
.tsa-split .tsa-panel { position: relative; isolation: isolate; background:
  radial-gradient(66% 66% at 100% 0%, color-mix(in srgb, var(--p) 46%, transparent), transparent 70%),
  radial-gradient(54% 54% at 58% 100%, color-mix(in srgb, var(--p2) 32%, transparent), transparent 70%),
  #12111d; }
.tsa-split .tsa-panel::before { content: ""; position: absolute; z-index: -1; inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask-image: linear-gradient(135deg, #000, transparent 78%);
  mask-image: linear-gradient(135deg, #000, transparent 78%);
}
.tsa-split .tsa-panel-in { position: relative; }
.tsa-split .tsa-main { background: #fbfafc; }
.tsa-split .tsa-card h1 { font-size: 30px; letter-spacing: -.04em; }
.tsa-split .tsa-btn { border-radius: 10px; box-shadow: none; }
.tsa-split .tsa-btn:hover { box-shadow: none; }
@media (max-width: 860px) {
  .tsa-login-main { padding: 36px 20px 52px !important; }
  .tsa-login-card { max-width: 430px !important; }
  .tsa-login-intro { align-items: center; text-align: center; }
  .tsa-login .tsa-foot { text-align: center; }
}
