/* American Way — tela de login */
.awl { --navy: #071c47; --navy-2: #0b2a6b; --blue: #2a5bff; --red: #e3263f; --ink: #0f1b3d; --muted: #66728c; --line: #e2e7f1; --card: #ffffff; --field: #f4f6fb; --page: #eef2f9; }
[data-theme="dark"] .awl { --ink: #eef2fb; --muted: #9aa6c2; --line: #26324f; --card: #111a31; --field: #0b1326; --page: #070d1d; }
html, body { margin: 0; }
body.awl { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr); background: var(--page); color: var(--ink);
  font-family: "Plus Jakarta Sans", Inter, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.awl *, .awl *::before, .awl *::after { box-sizing: border-box; }

/* ---------------- painel da marca ---------------- */
.awl-brand { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: clamp(28px, 5vw, 64px);
  color: #fff; background: radial-gradient(120% 90% at 0% 0%, #123a96 0%, transparent 55%), radial-gradient(90% 80% at 100% 100%, #5b1230 0%, transparent 55%), linear-gradient(150deg, #06132f, #0a2463 55%, #081a45); isolation: isolate; }
.awl-brand::before { content: ""; position: absolute; inset: -30%; z-index: -2; background: conic-gradient(from 0deg at 50% 50%, rgba(42, 91, 255, .35), rgba(227, 38, 63, .28), rgba(42, 91, 255, .1), rgba(42, 91, 255, .35)); filter: blur(70px); animation: awl-spin 22s linear infinite; }
.awl-brand::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }
@keyframes awl-spin { to { transform: rotate(360deg); } }
.awl-logo img { height: 58px; width: auto; display: block; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .35)); }
.awl-copy { max-width: 560px; }
.awl-kicker { display: inline-flex; align-items: center; gap: 10px; color: #ff8a9b; font-size: 12px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.awl-kicker::before, .awl-kicker::after { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.awl-copy h1 { margin: 14px 0 14px; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -.03em; font-weight: 900; }
.awl-copy h1 em { font-style: normal; background: linear-gradient(90deg, #8fb0ff, #ff8a9b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.awl-copy p { margin: 0; max-width: 470px; color: rgba(255, 255, 255, .78); font-size: 16.5px; line-height: 1.6; }
.awl-feats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; padding: 0; list-style: none; }
.awl-feats li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: rgba(255, 255, 255, .07); backdrop-filter: blur(6px); font-size: 13px; font-weight: 700; }

/* frases flutuando */
.awl-bubbles { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.awl-bubble { position: absolute; padding: 10px 16px; border-radius: 16px 16px 16px 4px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  color: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 18px 40px rgba(0, 0, 0, .25); backdrop-filter: blur(8px); animation: awl-float 9s ease-in-out infinite; white-space: nowrap; }
.awl-bubble.is-pt { border-radius: 16px 16px 4px 16px; background: rgba(227, 38, 63, .2); border-color: rgba(255, 138, 155, .35); }
.awl-bubble:nth-child(1) { top: 16%; right: 8%; animation-delay: -1s; }
.awl-bubble:nth-child(2) { top: 27%; right: 24%; animation-delay: -4s; }
.awl-bubble:nth-child(3) { bottom: 26%; right: 10%; animation-delay: -2.5s; }
.awl-bubble:nth-child(4) { bottom: 14%; right: 32%; animation-delay: -6s; }
.awl-bubble:nth-child(5) { top: 45%; right: 5%; animation-delay: -3.5s; font-size: 13px; opacity: .8; }
@keyframes awl-float { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-16px) rotate(1.5deg); } }
.awl-foot { color: rgba(255, 255, 255, .55); font-size: 12.5px; }

/* ---------------- formulário ---------------- */
.awl-side { position: relative; display: grid; place-items: center; padding: clamp(20px, 4vw, 56px); }
.awl-theme { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); cursor: pointer; font-size: 17px; display: grid; place-items: center; }
.awl-card { width: min(420px, 100%); padding: clamp(24px, 3.4vw, 38px); border: 1px solid var(--line); border-radius: 26px; background: var(--card);
  box-shadow: 0 30px 80px rgba(7, 28, 71, .14); animation: awl-rise .7s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes awl-rise { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.awl-wave { display: inline-block; animation: awl-wave 2.2s ease-in-out 1s 2; transform-origin: 70% 70%; }
@keyframes awl-wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-8deg); } }
.awl-card h2 { margin: 0 0 6px; font-size: 28px; letter-spacing: -.02em; }
.awl-card .awl-sub { margin: 0 0 24px; color: var(--muted); font-size: 14.5px; }
.awl-field { position: relative; display: block; margin-bottom: 14px; }
.awl-field > span { display: block; margin: 0 0 7px; color: var(--muted); font-size: 12.5px; font-weight: 800; }
.awl-field .awl-ic { position: absolute; left: 14px; bottom: 15px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.awl-field input { width: 100%; height: 50px; margin: 0; padding: 0 46px 0 44px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--field); color: var(--ink); font: inherit; font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
.awl-field input:focus { border-color: var(--blue); background: var(--card); box-shadow: 0 0 0 4px rgba(42, 91, 255, .14); }
.awl-field input:focus ~ .awl-ic, .awl-field:focus-within .awl-ic { color: var(--blue); }
.awl-eye { position: absolute; right: 8px; bottom: 8px; width: 36px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.awl-eye:hover { background: rgba(42, 91, 255, .1); color: var(--blue); }
.awl-eye svg, .awl-ic { display: block; }
.awl-remember { display: flex; align-items: center; gap: 12px; margin: 6px 0 20px; color: var(--muted); font-size: 13.5px; cursor: pointer; user-select: none; }
.awl-remember input { position: absolute; opacity: 0; pointer-events: none; }
.awl-switch { flex: 0 0 auto; position: relative; width: 42px; height: 24px; border-radius: 999px; background: var(--line); transition: background .2s; }
.awl-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .2s; }
.awl-remember input:checked + .awl-switch { background: var(--blue); }
.awl-remember input:checked + .awl-switch::after { transform: translateX(18px); }
.awl-remember input:focus-visible + .awl-switch { outline: 3px solid rgba(42, 91, 255, .4); outline-offset: 2px; }
.awl-submit { position: relative; width: 100%; height: 54px; margin: 0; border: 0; border-radius: 15px; color: #fff; font: inherit; font-size: 16px; font-weight: 900; cursor: pointer; overflow: hidden;
  background: linear-gradient(135deg, #2a5bff, #1d3fc4 55%, #e3263f); background-size: 200% 100%; box-shadow: 0 16px 34px rgba(42, 91, 255, .35); transition: background-position .4s, transform .15s, box-shadow .2s; }
.awl-submit:hover { background-position: 100% 0; transform: translateY(-1px); box-shadow: 0 20px 40px rgba(227, 38, 63, .3); }
.awl-submit:active { transform: translateY(1px); }
.awl-submit:disabled { cursor: wait; opacity: .9; }
.awl-submit:disabled::before { content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 10px; vertical-align: -3px; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: awl-rot .7s linear infinite; }
@keyframes awl-rot { to { transform: rotate(360deg); } }
.awl-links { display: grid; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; font-size: 13.5px; color: var(--muted); }
.awl-links p { margin: 0; }
.awl-links a { color: var(--blue); font-weight: 800; text-decoration: none; }
.awl-links a:hover { text-decoration: underline; }
[data-theme="dark"] .awl-links a { color: #8fb0ff; }

/* erro */
.awl .popup-error { position: fixed; left: 50%; top: 20px; z-index: 50; max-width: min(460px, calc(100vw - 32px)); padding: 13px 18px; border-radius: 14px; background: #b4182f; color: #fff; font-weight: 800;
  box-shadow: 0 18px 40px rgba(180, 24, 47, .35); transform: translate(-50%, -140%); opacity: 0; transition: .3s; display: block; }
.awl .popup-error.show { transform: translate(-50%, 0); opacity: 1; }
.awl-card.is-shake { animation: awl-shake .45s; }
@keyframes awl-shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* ---------------- celular / tablet ---------------- */
@media (max-width: 900px) {
  body.awl { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .awl-brand { gap: 18px; padding: 22px 20px 64px; min-height: 0; }
  .awl-logo img { height: 46px; }
  .awl-copy h1 { font-size: clamp(28px, 8vw, 40px); margin: 10px 0 8px; }
  .awl-copy p { font-size: 14.5px; }
  .awl-feats, .awl-foot, .awl-bubble:nth-child(n+3) { display: none; }
  .awl-bubble { font-size: 13px; padding: 8px 12px; }
  .awl-bubble:nth-child(1) { top: 18px; right: 16px; }
  .awl-bubble:nth-child(2) { top: auto; bottom: 74px; right: 18px; }
  .awl-side { align-items: start; padding: 0 16px 32px; margin-top: -44px; }
  .awl-theme { top: -100px; right: 16px; display: none; }
}
@media (prefers-reduced-motion: reduce) { .awl *, .awl *::before, .awl *::after { animation: none !important; transition: none !important; } }

/* o login tem o próprio botão de tema */
.awl #theme-toggle { display: none !important; }
@media (max-width: 900px) { .awl-bubble:nth-child(2) { display: none; } .awl-copy { padding-right: 70px; } }
