/* ============================================================
   auth-mobile.css: a entrada do celular (Apple TV, de bolso).

   So existe quando js/auth-mobile.js montou a tela — e esse arquivo
   so liga em uma tela de toque. Por isso nada aqui precisa de media
   query: o overlay .ma nao aparece na TV.

   A linguagem e a do Apple TV: fundo quase preto com um brilho
   radial, tipografia grande e apertada, botoes de pill brancos,
   campos de vidro, e tudo com pelo menos 44px de altura.
   ============================================================ */

.ma {
    position: fixed; inset: 0; z-index: 9999;
    background: #05070c;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}
.ma.is-off { display: none; }
.ma__bg {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(120% 70% at 50% -10%, rgba(229, 9, 20, 0.22), transparent 60%),
        radial-gradient(90% 60% at 85% 110%, rgba(38, 84, 196, 0.18), transparent 60%),
        linear-gradient(180deg, #070a12 0%, #05070c 100%);
}
.ma__page {
    position: relative; height: 100%; overflow-y: auto; overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    display: flex; flex-direction: column;
    padding: 0 22px calc(22px + env(safe-area-inset-bottom));
    animation: ma-in 260ms ease-out;
}
@keyframes ma-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- boas-vindas ---------- */
.ma__hero {
    flex: 1 1 auto; display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 14px; text-align: center; min-height: 0; padding: 24px 0;
}
.ma__logo { width: 84px; height: 84px; border-radius: 22px; }
.ma__mark { font-size: 52px; font-weight: 800; letter-spacing: -2px; line-height: 1; }
.ma__mark b { color: #fff; }
.ma__mark span { color: #e50914; font-weight: 800; }
.ma__tag { font-size: 16px; color: rgba(255,255,255,0.72); margin-top: 4px; }
.ma__cta { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 340px; margin-top: 18px; }
.ma__langs { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; justify-content: center; }
.ma__lang {
    display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
    border-radius: 20px; border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.82);
    font-size: 13px; font-weight: 600;
}
.ma__lang.is-on { background: #fff; color: #05070c; border-color: #fff; }
.ma__lang svg { width: 22px; height: 22px; }
.ma__foot { font-size: 11px; color: rgba(255,255,255,0.38); margin-top: 18px; }

/* ---------- botoes e links ---------- */
.ma__btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; height: 52px; border-radius: 26px; border: 0;
    background: rgba(255,255,255,0.10); color: #fff;
    font-size: 16px; font-weight: 700; letter-spacing: -0.2px;
}
.ma__btn--primary { background: #fff; color: #05070c; }
.ma__btn.is-busy, .ma__btn:disabled { opacity: 0.55; }
.ma__link {
    background: none; border: 0; color: rgba(255,255,255,0.72);
    font-size: 13.5px; font-weight: 600; padding: 10px 4px; text-decoration: underline;
    text-underline-offset: 3px;
}
.ma__link--danger { color: #ff453a; }

/* ---------- barra de titulo ---------- */
.ma__bar { display: flex; align-items: center; gap: 12px; height: 56px; flex: 0 0 auto; }
.ma__back {
    width: 38px; height: 38px; border-radius: 19px; border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.06); color: #fff; display: flex; align-items: center; justify-content: center;
}
.ma__back svg { width: 20px; height: 20px; }
.ma__title { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; color: #fff; }
.ma__spacer { flex: 1 1 auto; }
.ma__text { font-size: 13px; color: rgba(255,255,255,0.60); text-align: center; }
.ma__hint { font-size: 12px; color: rgba(255,255,255,0.45); text-align: center; line-height: 1.4; }

/* ---------- abas (segmentado) ---------- */
.ma__tabs { display: flex; gap: 4px; padding: 4px; border-radius: 22px; background: rgba(255,255,255,0.07); margin: 4px 0 18px; }
.ma__tab {
    flex: 1 1 0; height: 40px; border-radius: 18px; border: 0; background: none;
    color: rgba(255,255,255,0.68); font-size: 14px; font-weight: 700;
}
.ma__tab.is-on { background: #fff; color: #05070c; }
.ma__chips { display: flex; gap: 8px; margin: 4px 0 16px; }
.ma__chips .ma__tab { flex: 0 1 auto; padding: 0 18px; background: rgba(255,255,255,0.07); }
.ma__chips .ma__tab.is-on { background: #fff; }

/* ---------- campos ---------- */
.ma__form { display: flex; flex-direction: column; gap: 14px; padding-bottom: 24px; }
.ma__field { display: flex; flex-direction: column; gap: 7px; }
.ma__field span { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.55); padding-left: 4px; }
.ma__field input {
    width: 100%; height: 52px; box-sizing: border-box; padding: 0 16px;
    border-radius: 14px; border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.08); color: #fff;
    font-size: 16px; font-family: inherit; outline: none;
    -webkit-appearance: none; appearance: none;
}
.ma__field input::placeholder { color: rgba(255,255,255,0.32); }
.ma__field input:focus { border-color: rgba(255,255,255,0.42); background: rgba(255,255,255,0.12); }
.ma__field input[type="password"] { letter-spacing: 2px; }

.ma__badge {
    display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
    height: 30px; padding: 0 12px; border-radius: 15px;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.08);
    font-size: 12px; color: rgba(255,255,255,0.78);
}
.ma__badge i { width: 6px; height: 6px; border-radius: 3px; background: #30d158; }
.ma__err {
    font-size: 13px; line-height: 1.4; color: #ff453a; text-align: center;
    padding: 10px 14px; border-radius: 12px; background: rgba(255,69,58,0.10);
}

/* ---------- perfis ---------- */
.ma__phead { display: flex; align-items: baseline; gap: 10px; padding: 8px 2px 16px; }
.ma__ptitle { font-size: 24px; font-weight: 800; letter-spacing: -0.7px; color: #fff; }
.ma__pmax { font-size: 13px; color: rgba(255,255,255,0.5); }
.ma__pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 12px; padding: 6px 0 18px; }
.ma__p { background: none; border: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ma__pav {
    width: 76px; height: 76px; border-radius: 38px; background-size: cover; background-position: center;
    display: flex; align-items: flex-end; justify-content: center; position: relative;
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}
.ma__pav--add { background: rgba(255,255,255,0.08); border: 1px dashed rgba(255,255,255,0.25); color: rgba(255,255,255,0.7); font-size: 34px; align-items: center; }
.ma__p.is-edit .ma__pav { opacity: 0.85; }
.ma__ppin {
    position: absolute; top: -4px; right: -4px; min-width: 24px; height: 20px; padding: 0 6px;
    border-radius: 10px; background: #f5c518; color: #05070c; font-size: 10px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.ma__pkid {
    position: absolute; bottom: -4px; padding: 2px 8px; border-radius: 8px;
    background: #2e7d32; color: #fff; font-size: 9px; font-weight: 700;
}
.ma__pname { font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,0.85); max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ma__pfoot { display: flex; align-items: center; gap: 14px; padding: 14px 0 4px; flex-wrap: wrap; }
.ma__plabel { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.5); padding: 0 2px; margin-bottom: 10px; }

/* ---------- editar perfil ---------- */
.ma__avs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 18px; }
.ma__av { height: 44px; border-radius: 22px; background-size: cover; background-position: center; border: 2px solid transparent; }
.ma__av.is-on { border-color: #fff; }
.ma__pinrow { display: flex; align-items: center; gap: 12px; padding: 6px 0 14px; }
.ma__pinlabel { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.5); width: 34px; }
.ma__pinvalue { flex: 1 1 auto; font-size: 13px; color: rgba(255,255,255,0.75); }

/* ---------- PIN ---------- */
.ma__center { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 12px 0 30px; }
.ma__pintitle { font-size: 24px; font-weight: 800; letter-spacing: -0.7px; color: #fff; }
.ma__pindots { display: flex; gap: 12px; margin: 8px 0 18px; }
.ma__pindots i { width: 13px; height: 13px; border-radius: 7px; border: 1px solid rgba(255,255,255,0.35); }
.ma__pindots i.is-on { background: #fff; border-color: #fff; }
.ma__pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; max-width: 280px; }
.ma__pinkey {
    height: 68px; border-radius: 34px; border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.08); color: #fff; font-size: 22px; font-weight: 700;
}

/* ---------- 1.0.49: vermelho na entrada do celular ----------
   O fundo que o cliente gostou fica; so os pontos de leitura ganham o
   acento da marca: botao principal, aba ativa, idioma escolhido, foco e
   os pontos do PIN. */
.ma__bg {
    background:
        radial-gradient(110% 60% at 18% -6%, rgba(229,9,20,0.30), transparent 62%),
        radial-gradient(90% 60% at 88% 108%, rgba(120,16,32,0.22), transparent 60%),
        linear-gradient(180deg, #0a080d 0%, #05070c 100%);
}
.ma__mark { position: relative; padding-bottom: 8px; }
.ma__mark::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 54px; height: 3px; margin-left: -27px; border-radius: 2px;
    background: linear-gradient(90deg, transparent, #e50914, transparent); }
.ma__btn--primary { background: linear-gradient(180deg, #ff4d5a 0%, #e50914 100%); color: #fff; box-shadow: 0 12px 30px rgba(229,9,20,0.32); }
.ma__btn:not(.ma__btn--primary) { border: 1px solid rgba(229,9,20,0.22); }
.ma__lang.is-on { background: #fff; color: #e50914; }
.ma__lang:not(.is-on) { border-color: rgba(229,9,20,0.20); }
.ma__field input:focus { border-color: rgba(229,9,20,0.72); background: rgba(229,9,20,0.07); box-shadow: 0 0 0 3px rgba(229,9,20,0.12); }
.ma__tab.is-on, .ma__chips .ma__tab.is-on { background: linear-gradient(180deg, #ff4d5a, #e50914); color: #fff; }
.ma__badge i { background: #e50914; box-shadow: 0 0 10px rgba(229,9,20,0.6); }
.ma__pindots i.is-on { background: #e50914; border-color: #e50914; }
.ma__pav--add { border-color: rgba(229,9,20,0.35); color: #ff7b84; }
.ma__ppin { background: #e50914; color: #fff; }
.ma__foot { color: rgba(255,120,128,0.52); }
.ma__title { position: relative; padding-left: 14px; }
.ma__title::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 3px; border-radius: 2px; background: #e50914; }

