/* Login, cadastro e recuperação de senha. */
:root {
  --bg: #070A12; --field: #191B2D; --line: #2A2D42; --text: #FFFFFF; --muted: #A4A9BD;
  --primary: #2E4CE5; --primary-hover: #3F5CF0; --link: #5B78FF; --danger: #FF6B78;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 400 16px/1.4 Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
.auth-top { display: flex; align-items: center; padding: 16px 20px; }
.auth-logo { display: block; height: 36px; width: auto; max-width: 170px; object-fit: contain; }
.auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 16px 16px 72px; }
.auth-box { width: min(370px, 100%); }
.auth-box h1 { margin-bottom: 30px; text-align: center; font-size: 24px; font-weight: 700; }
.auth-lead { margin: -18px 0 24px; color: var(--muted); font-size: 14px; text-align: center; }
.auth-field { margin-bottom: 20px; }
.auth-field label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 500; }
.auth-names { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.auth-input { display: block; width: 100%; height: 43px; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--field); color: var(--text); font: inherit; outline: 0; transition: border-color .15s; }
.auth-input:focus { border-color: var(--primary); }
.auth-input:-webkit-autofill, .auth-input:-webkit-autofill:hover, .auth-input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px var(--field) inset !important; -webkit-text-fill-color: var(--text) !important; caret-color: var(--text); }
.auth-pass { position: relative; }
.auth-pass .auth-input { padding-right: 48px; }
.auth-eye { position: absolute; top: 0; right: 0; width: 46px; height: 43px; display: flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.auth-eye:hover { color: var(--text); }
.auth-eye:focus-visible, .auth-submit:focus-visible, .auth-reload:focus-visible, .auth-box a:focus-visible, .auth-check input:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.auth-captcha { display: grid; grid-template-columns: minmax(0, 1fr) 150px 43px; gap: 8px; }
.auth-captcha img { display: block; width: 100%; height: 43px; border: 1px solid var(--line); border-radius: 6px; background: #111; object-fit: contain; cursor: pointer; }
.auth-reload { display: flex; align-items: center; justify-content: center; height: 43px; border: 1px solid var(--line); border-radius: 6px; background: var(--field); color: var(--muted); cursor: pointer; }
.auth-reload:hover { color: var(--text); }
.auth-forgot { display: inline-block; margin-top: 8px; font-size: 16px; font-weight: 500; }
.auth-box a { color: var(--link); text-decoration: none; }
.auth-box a:hover { text-decoration: underline; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.auth-check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.auth-check input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; border: 1px solid var(--line); border-radius: 4px; background: var(--field); cursor: pointer; }
.auth-check input:checked { border-color: var(--primary); background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.5 3.5L15 7'/%3E%3C/svg%3E") center/16px no-repeat; }
.auth-submit { min-width: 84px; height: 42px; padding: 0 18px; border: 0; border-radius: 6px; background: var(--primary); color: #fff; font: inherit; font-weight: 500; cursor: pointer; transition: background .15s; }
.auth-submit.is-full { display: block; width: 100%; margin-top: 4px; }
.auth-submit:hover { background: var(--primary-hover); }
.auth-submit:disabled { opacity: .65; cursor: default; }
.auth-error { display: none; margin-top: 16px; padding: 9px 12px; border: 1px solid var(--danger); border-radius: 6px; color: var(--danger); font-size: 14px; text-align: center; }
.auth-alt { margin-top: 30px; text-align: center; }
.auth-terms { margin-top: 18px; color: var(--muted); font-size: 12px; text-align: center; }
.auth-box .auth-terms a { color: var(--muted); text-decoration: underline; }
@media (max-width: 500px) {
  .auth-top { padding: 12px 16px; }
  .auth-logo { height: 30px; }
  .auth-main { align-items: flex-start; padding-top: 28px; padding-bottom: 32px; }
  .auth-input, .auth-eye, .auth-reload, .auth-captcha img { height: 46px; }
  .auth-submit { height: 44px; }
  .auth-captcha { grid-template-columns: minmax(0, 1fr) 120px 46px; }
}
/* O convite para instalar continua no menu depois do login; aqui cobria os links. */
.flashtrader-install-button { display: none !important; }
