/* airbrush.ai auth pages, v2 look (deploy 19). Used by views/layouts/auth_v2.hbs and the plan page wrapper (.av-plan).
   Tokens match outer_app/public/home-v2: lilac canvas, indigo actions, Bricolage + Inter, light only. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/assets/mx/fonts/inter-var-latin.woff2') format('woff2'); unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201E, U+2022, U+2026, U+2039-203A, U+20AC, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 600 800; font-display: swap; src: url('/assets/mx/fonts/bricolage-var-latin.woff2') format('woff2'); unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201E, U+2022, U+2026, U+2039-203A, U+20AC, U+2122, U+2190-2193, U+2212; }

:root {
  --av-bg: #F6F3FF; --av-bg2: #EEE9FE; --av-surface: #FFFFFF;
  --av-ink: #17132E; --av-ink2: #4A4566; --av-ink3: #5F5A7E;
  --av-b900: #241066; --av-b700: #4526B1; --av-b600: #5B3FD6; --av-b300: #B9A9F5; --av-b100: #EEE9FE;
  --av-heat: #F86635; --av-heat-ink: #A53A16; --av-heat-100: #FFE8DE;
  --av-line: rgba(23, 19, 46, .09); --av-field: #8F84BE;
  --av-fd: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --av-fu: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body.av { margin: 0; min-height: 100vh; color: var(--av-ink); font: 400 16px/1.55 var(--av-fu); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
  background:
    radial-gradient(760px 460px at 8% -4%, rgba(139, 79, 216, .20), transparent 62%),
    radial-gradient(680px 440px at 96% 2%, rgba(248, 102, 53, .14), transparent 60%),
    radial-gradient(900px 520px at 50% 108%, rgba(47, 127, 216, .13), transparent 62%),
    var(--av-bg); }
body.av *, body.av *::before, body.av *::after { box-sizing: border-box; }
.av a { color: var(--av-b700); text-underline-offset: 3px; }
.av a:hover { color: var(--av-b900); }
.av :focus-visible { outline: 3px solid var(--av-b600); outline-offset: 3px; border-radius: 8px; }

.av-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 0 16px; }
.av-top { width: 100%; max-width: 1200px; padding: 22px 0 0; display: flex; justify-content: center; }
.av-brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.av .av-brand:hover { color: inherit; }
.av-mark { width: 32px; height: 32px; flex: none; }
.av-wm { font: 800 25px/1 var(--av-fd); letter-spacing: -.03em; color: #0A6FCB; white-space: nowrap; }
.av-wm span { font-weight: 700; letter-spacing: -.01em; }
.av-main { flex: 1 0 auto; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px 0 28px; }
.av-foot { padding: 6px 0 24px; text-align: center; color: var(--av-ink3); font-size: 14px; }

/* card */
.av-card { position: relative; width: 100%; max-width: 440px; margin-top: 30px; padding: 54px 36px 32px; background: var(--av-surface); border-radius: 28px; border: 1px solid var(--av-line);
  box-shadow: 0 1px 2px rgba(23, 19, 46, .05), 0 10px 28px rgba(69, 38, 177, .09), 0 34px 70px rgba(69, 38, 177, .12); }
.av-card.av-wide { max-width: 520px; }
.av-puff { position: absolute; left: 50%; top: -40px; width: 84px; height: 84px; margin-left: -42px; pointer-events: none; }
.av-puff svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 6px 10px rgba(91, 63, 214, .18)); }
.av-eyebrow { display: block; text-align: center; font: 700 13px/1 var(--av-fu); letter-spacing: .06em; text-transform: uppercase; color: var(--av-b700); margin: 0 0 10px; }
.av-card h1 { margin: 0; text-align: center; font: 800 30px/1.1 var(--av-fd); letter-spacing: -.03em; color: var(--av-ink); }
.av-sub { margin: 10px auto 0; max-width: 34ch; text-align: center; color: var(--av-ink2); font-size: 16px; }
.av-form { margin-top: 26px; display: grid; gap: 16px; }
.av-f { display: block; }
.av-f > span { display: block; margin: 0 0 6px; font: 600 14px/1.2 var(--av-fu); color: var(--av-ink); }
.av-f input { display: block; width: 100%; height: 50px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--av-field); background: #fff; color: var(--av-ink); font: 400 16px/1 var(--av-fu); box-shadow: 0 1px 2px rgba(23, 19, 46, .04) inset; transition: border-color .15s ease, box-shadow .15s ease; -webkit-appearance: none; appearance: none; }
.av-f input:hover { border-color: var(--av-b600); }
.av-f input:focus { outline: none; border-color: var(--av-b600); box-shadow: 0 0 0 4px rgba(91, 63, 214, .24); }
.av-row { display: flex; justify-content: flex-end; margin-top: -4px; font-size: 14px; font-weight: 600; }
.av-msg { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--av-b100); border: 1px solid var(--av-b300); color: var(--av-b900); font-size: 15px; line-height: 1.45; }
.av-btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--av-b600); color: #fff !important; font: 700 16px/1 var(--av-fu); text-decoration: none; cursor: pointer; box-shadow: 0 6px 18px rgba(91, 63, 214, .32); transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.av-btn:hover { background: var(--av-b700); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(91, 63, 214, .36); color: #fff; }
.av-btn:active { transform: translateY(0); }
.av-btn-ghost { background: #fff; color: var(--av-b700) !important; box-shadow: inset 0 0 0 1.5px var(--av-b300); }
.av-btn-ghost:hover { background: var(--av-b100); color: var(--av-b900) !important; box-shadow: inset 0 0 0 1.5px var(--av-b600); }
.av-btn svg { width: 18px; height: 18px; margin-right: 8px; flex: none; }
.av-alt { margin: 20px 0 0; text-align: center; color: var(--av-ink2); font-size: 15px; }
.av-alt a { font-weight: 600; }
.av-or { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; color: var(--av-ink3); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.av-or::before, .av-or::after { content: ""; flex: 1; height: 1px; background: var(--av-line); }
.av-note { margin: 18px 0 0; text-align: center; color: var(--av-ink3); font-size: 14px; }
.av-big { text-align: center; font: 800 64px/1 var(--av-fd); letter-spacing: -.04em; color: var(--av-b600); margin: 4px 0 0; }
.av-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.av-list li { display: flex; align-items: center; gap: 12px; color: var(--av-ink2); font-size: 15px; }
.av-list .av-ic { width: 36px; height: 36px; border-radius: 12px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--av-b100); color: var(--av-b700); }
.av-list .av-ic svg { width: 19px; height: 19px; }
.av-list li:nth-child(2) .av-ic { background: #E1F5F2; color: #0A6F64; }
.av-list li:nth-child(3) .av-ic { background: var(--av-heat-100); color: var(--av-heat-ink); }
.av-list li:nth-child(4) .av-ic { background: #E4EFFD; color: #1F5FA8; }
.av-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 20px 0 22px; padding: 0; list-style: none; }
.av-chips li { padding: 7px 12px; border-radius: 999px; background: var(--av-b100); color: var(--av-b900); font-size: 14px; font-weight: 600; }
.av-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin: 18px 0 0; font-size: 14px; font-weight: 600; }
.av-ok { width: 64px; height: 64px; margin: 0 auto 4px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #E1F5F2; color: #0A6F64; }
.av-ok svg { width: 32px; height: 32px; }

@media (max-width: 480px) {
  .av-top { padding-top: 16px; }
  .av-card { padding: 50px 22px 26px; border-radius: 24px; }
  .av-card h1 { font-size: 27px; }
  .av-big { font-size: 54px; }
}
@media (prefers-reduced-motion: reduce) { .av *, .av *::before, .av *::after { transition: none !important; animation: none !important; } }

/* ---- /account-plan (classic plan page, visual alignment only; markup, links and banner unchanged) ---- */
.av-plan { font-family: var(--av-fu); }
.av-plan .card { border: 1px solid var(--av-line) !important; border-radius: 22px !important; background: #fff; box-shadow: 0 1px 2px rgba(23, 19, 46, .05), 0 10px 28px rgba(69, 38, 177, .08) !important; }
.av-plan .card-title, .av-plan .page-title-content h3 { font-family: var(--av-fd); font-weight: 800; letter-spacing: -.02em; color: var(--av-ink); }
.av-plan .page-title-content p { color: var(--av-ink2); }
.av-plan .ab-welcome { background: linear-gradient(135deg, #F6F3FF, #FFF1EA) !important; border: 1px solid var(--av-b300) !important; border-radius: 20px !important; box-shadow: 0 8px 22px rgba(69, 38, 177, .10); }
.av-plan .ab-welcome strong { color: var(--av-b900) !important; font-family: var(--av-fd); }
.av-plan .ab-welcome span { color: var(--av-ink2) !important; }
.av-plan .btn.btn-primary { background: var(--av-b600) !important; border: 0 !important; color: #fff !important; border-radius: 999px !important; font-weight: 700; padding: 13px 26px; box-shadow: 0 6px 18px rgba(91, 63, 214, .30); }
.av-plan .btn.btn-primary:hover { background: var(--av-b700) !important; }
.av-plan .btn.btn-primary[style*="4CAF50"] { background: #0A7A52 !important; box-shadow: none; }
.av-plan .av-credits { border-left: 4px solid var(--av-b600) !important; }
.av-plan .av-credits h2 { color: var(--av-b600) !important; font-family: var(--av-fd); }
.av-plan .av-credits p, .av-plan .av-credits h4 { color: var(--av-ink2) !important; }
.av-plan .table thead th { background: var(--av-b100); color: var(--av-b900); font-family: var(--av-fd); font-weight: 800; border: 0; text-align: center; }
.av-plan .table td { color: var(--av-ink2); border-color: var(--av-line); }
