/* --- base.css --- */
/* ============================================
   AUTH v5.0 — iPHONE CARTOON PRETO & BRANCO
   Logo real + botão Google alinhado + card refinado
   © 2026 LITE STUDIO
   ============================================ */
.st-auth-container {
    background: #000000;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1.6px);
    background-size: 16px 16px;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Rajdhani', sans-serif;
    position: relative;
}
.st-auth-container .st-icon { color: #ffffff !important; }
.st-auth-scroll {
    flex: 1; min-height: 0;
    overflow-y: auto; overflow-x: hidden;
    -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    position: relative; z-index: 1;
}
.st-auth-scroll::-webkit-scrollbar { width: 4px; }
.st-auth-scroll::-webkit-scrollbar-track { background: transparent; }
.st-auth-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.25); border-radius: 2px; }
.st-auth-inner {
    min-height: 100%;
    display: flex; flex-direction: column; align-items: center;
    padding: 44px 20px 30px; position: relative; z-index: 2;
}
/* ============================================
   BACKGROUND
   ============================================ */
.st-auth-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.st-auth-bg-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 72%);
}
.st-auth-bg-glow {
    position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
    width: 560px; height: 460px;
    background: radial-gradient(ellipse, rgba(255,255,255,0.14) 0%, transparent 64%);
    animation: authGlowPulse 6s ease-in-out infinite;
}
.st-auth-bg-glow-2 {
    top: auto; bottom: -240px;
    background: radial-gradient(ellipse, rgba(255,255,255,0.05) 0%, transparent 64%);
    animation-delay: -3s;
}
.st-auth-bg-vignette {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 45%, transparent 40%, rgba(0,0,0,0.55) 100%);
}
.st-auth-particles { position: absolute; inset: 0; }
.st-auth-particle {
    position: absolute; bottom: -10px; background: #ffffff; border-radius: 50%;
    animation: authParticleRise linear infinite;
    box-shadow: 0 0 6px rgba(255,255,255,0.6);
}
/* ============================================
   BRAND (logo real do projeto)
   ============================================ */
.st-auth-brand { text-align: center; margin-bottom: 30px; animation: authFadeDown 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.st-auth-logo-wrap { position: relative; width: 96px; height: 96px; margin: 0 auto 18px; }
.st-auth-logo-glow {
    position: absolute; inset: -22px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    animation: authGlowPulse 4s ease-in-out infinite;
}
.st-auth-logo-img {
    position: relative; z-index: 2;
    width: 96px; height: 96px;
    object-fit: cover;
    border-radius: 26px;
    border: 3px solid #ffffff;
    box-shadow: 0 8px 0 rgba(255,255,255,0.2), 0 0 30px rgba(255,255,255,0.25);
    background: #ffffff;
    display: block;
}
.st-auth-logo-fallback {
    position: relative; z-index: 2;
    width: 96px; height: 96px;
    background: #ffffff; color: #000000;
    display: none; align-items: center; justify-content: center;
    font-family: 'Teko', sans-serif; font-size: 2.8rem; font-weight: 700; line-height: 1;
    border-radius: 26px;
    border: 3px solid #ffffff;
    box-shadow: 0 8px 0 rgba(255,255,255,0.2), 0 0 30px rgba(255,255,255,0.25);
}
.st-auth-logo-ring {
    position: absolute; inset: -9px; border: 1px solid rgba(255,255,255,0.4);
    border-radius: 32px;
    animation: authRingPulse 3s ease-in-out infinite;
}
.st-auth-logo-ring-2 { inset: -16px; border-color: rgba(255,255,255,0.18); animation-delay: -1.5s; border-radius: 38px; }
.st-auth-title {
    font-family: inherit; font-size: 3.4rem; font-weight: 800;
    letter-spacing: 0.3em; line-height: 1; color: #ffffff;
    margin: 0 0 2px 0.3em; text-transform: uppercase;
    text-shadow: 3px 3px 0 rgba(255,255,255,0.12), 0 0 24px rgba(255,255,255,0.25);
}
.st-auth-tagline {
    font-family: var(--font-mono, 'Share Tech Mono', monospace); font-size: 0.62rem;
    letter-spacing: 0.45em; color: rgba(255,255,255,0.6); margin: 0 0 18px 0.45em;
    text-transform: uppercase;
}
.st-auth-quote {
    max-width: 300px; margin: 0 auto; padding: 4px 22px;
    position: relative;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.st-auth-quote::before, .st-auth-quote::after {
    content: ''; position: absolute; top: 50%; width: 14px; height: 2px;
    background: rgba(255,255,255,0.4); border-radius: 2px;
}
.st-auth-quote::before { left: 0; }
.st-auth-quote::after { right: 0; }
.st-auth-quote-fade { opacity: 0; transform: translateY(6px); }
.st-auth-quote-mark { font-family: 'Teko', sans-serif; font-size: 1.5rem; line-height: 0; color: rgba(255,255,255,0.55); vertical-align: -0.3em; }
.st-auth-quote-mark-end { margin-left: 2px; }
.st-auth-quote-text { font-size: 0.82rem; font-style: italic; line-height: 1.5; color: rgba(255,255,255,0.62); }
/* ============================================
   CARD
   ============================================ */
.st-auth-card {
    width: 100%; max-width: 392px; position: relative;
    padding: 30px 26px 26px; border-radius: 28px;
    background: #101010;
    border: 2px solid rgba(255,255,255,0.85);
    box-shadow: 0 7px 0 rgba(255,255,255,0.15), 0 24px 60px rgba(0,0,0,0.6);
    animation: authCardIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}
.st-auth-card-center { text-align: center; }
.st-auth-card-accent {
    position: absolute; top: 0; left: 20%; right: 20%; height: 3px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, transparent, #ffffff 30%, #e5e5e5 50%, #ffffff 70%, transparent);
    background-size: 200% 100%; animation: authAccentSlide 4s linear infinite;
}
.st-auth-corner {
    position: absolute; width: 15px; height: 15px;
    border: 1.5px solid rgba(255,255,255,0.5);
    pointer-events: none;
    animation: authBracketIn 0.5s ease 0.5s both;
}
.st-corner-tl { top: 11px; left: 11px; border-right: none; border-bottom: none; border-radius: 6px 0 0 0; }
.st-corner-tr { top: 11px; right: 11px; border-left: none; border-bottom: none; border-radius: 0 6px 0 0; }
.st-corner-bl { bottom: 11px; left: 11px; border-right: none; border-top: none; border-radius: 0 0 0 6px; }
.st-corner-br { bottom: 11px; right: 11px; border-left: none; border-top: none; border-radius: 0 0 6px 0; }
.st-auth-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono, monospace); font-size: 0.6rem;
    letter-spacing: 0.32em; color: rgba(255,255,255,0.6);
    margin-bottom: 12px; text-transform: uppercase;
    animation: authFadeUp 0.5s ease 0.3s both;
}
.st-auth-eyebrow-dot {
    width: 6px; height: 6px; border-radius: 50%; background: #ffffff;
    box-shadow: 0 0 8px rgba(255,255,255,0.8);
    animation: authDotPulse 2s ease-in-out infinite;
}
.st-auth-card-title {
    font-family: inherit; font-size: 2rem; font-weight: 800;
    letter-spacing: 0.02em; color: #ffffff; margin: 0; line-height: 1.05;
    animation: authFadeUp 0.5s ease 0.38s both;
}
.st-auth-card-desc { font-size: 0.85rem; line-height: 1.6; color: rgba(255,255,255,0.5); margin: 8px 0 0; }
.st-auth-ornament {
    display: flex; align-items: center; gap: 10px;
    margin: 14px auto 22px; max-width: 150px;
    animation: authFadeUp 0.5s ease 0.46s both;
}
.st-auth-ornament span { flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5)); }
.st-auth-ornament span:last-child { background: linear-gradient(90deg, rgba(255,255,255,0.5), transparent); }
.st-auth-ornament i { width: 6px; height: 6px; background: #ffffff; transform: rotate(45deg); box-shadow: 0 0 8px rgba(255,255,255,0.7); }
/* ============================================
   ✅ BOTÃO GOOGLE — ALINHADO E CENTRALIZADO
   ============================================ */
#googleBtnBox {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    margin: 6px 0;
    animation: authFadeUp 0.5s ease 0.54s both;
}
/* container que o Google renderiza dentro */
#googleBtnBox > div {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}
#googleBtnBox iframe {
    max-width: 100% !important;
    border-radius: 999px !important;
}
/* fallback (botão customizado) */
.st-auth-google-btn {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    width: 100%; max-width: 320px; margin: 0 auto;
    padding: 15px 24px;
    background: #ffffff; color: #1a1a1a;
    border: 2px solid #ffffff; border-radius: 999px;
    cursor: pointer;
    font-family: inherit; font-size: 0.98rem; font-weight: 700; letter-spacing: 0.01em;
    box-shadow: 0 5px 0 rgba(255,255,255,0.3);
    transition: transform 0.15s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.15s ease;
}
.st-auth-google-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 7px 0 rgba(255,255,255,0.3), 0 0 24px rgba(255,255,255,0.25);
}
.st-auth-google-btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 rgba(255,255,255,0.3); }
.st-auth-google-btn:disabled { opacity: 0.7; cursor: not-allowed; }
.st-auth-google-logo { display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; z-index: 2; }
.st-auth-google-logo svg { display: block; }
.st-auth-google-label { position: relative; z-index: 2; white-space: nowrap; }
.st-auth-google-shine {
    position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
    background: linear-gradient(110deg, transparent, rgba(0,0,0,0.08), transparent);
    transform: skewX(-18deg); z-index: 1; pointer-events: none;
}
.st-auth-google-btn:hover:not(:disabled) .st-auth-google-shine { animation: authShine 0.9s ease; }
.st-auth-google-btn.loading .st-auth-google-logo { animation: authSpin 0.8s linear infinite; }
.st-auth-google-btn.loading .st-auth-google-logo svg { filter: grayscale(1); opacity: 0.5; }
.st-auth-trust {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    margin-top: 16px; color: rgba(255,255,255,0.38);
    font-family: var(--font-mono, monospace); font-size: 0.66rem; letter-spacing: 0.04em;
    animation: authFadeUp 0.5s ease 0.62s both;
}
.st-auth-trust svg { color: rgba(255,255,255,0.6); flex-shrink: 0; }
.st-auth-chips {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    margin-top: 18px; padding-top: 16px; border-top: 2px solid rgba(255,255,255,0.08);
    animation: authFadeUp 0.5s ease 0.7s both;
}
.st-auth-chips span { font-family: var(--font-mono, monospace); font-size: 0.6rem; letter-spacing: 0.22em; color: rgba(255,255,255,0.4); text-transform: uppercase; }
.st-auth-chips b { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.5); }
/* ============================================
   BANNER DE ERRO
   ============================================ */
.st-auth-banner {
    display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px;
    margin-bottom: 18px; border-radius: 14px; font-size: 0.8rem; line-height: 1.45;
    animation: authFadeUp 0.4s ease;
}
.st-auth-banner-icon { font-size: 1.05rem; flex-shrink: 0; margin-top: 1px; }
.st-auth-banner-body { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.st-auth-banner-body strong { font-weight: 800; font-size: 0.8rem; }
.st-auth-banner-body span { opacity: 0.85; }
.st-auth-banner-warning { background: rgba(255,255,255,0.06); border: 2px dashed rgba(255,255,255,0.5); color: rgba(255,255,255,0.85); }
/* ============================================
   CALLBACK / ERROR
   ============================================ */
.st-auth-callback { padding: 6px 0; }
.st-auth-callback .st-auth-eyebrow { margin-bottom: 14px; }
.st-auth-spinner {
    width: 48px; height: 48px; margin: 2px auto 20px;
    border: 3px solid rgba(255,255,255,0.15); border-top-color: #ffffff; border-right-color: #ffffff;
    border-radius: 50%; animation: authSpin 0.8s linear infinite;
}
.st-auth-error-icon { font-size: 2.8rem; margin: 2px 0 12px; }
.st-auth-card-center .st-auth-google-btn { margin-top: 18px; }
/* ============================================
   FOOTER
   ============================================ */
.st-auth-footer { margin-top: 34px; text-align: center; width: 100%; max-width: 392px; }
.st-auth-footer-links { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 16px; }
.st-auth-footer-links a { color: rgba(255,255,255,0.4); text-decoration: none; font-size: 0.72rem; letter-spacing: 0.04em; transition: color 0.2s ease; }
.st-auth-footer-links a:hover { color: #ffffff; }
.st-auth-footer-links span { color: rgba(255,255,255,0.2); font-size: 0.7rem; }
.st-auth-footer-line { height: 2px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent); margin-bottom: 14px; border-radius: 2px; }
.st-auth-version {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--font-mono, monospace); font-size: 0.58rem;
    letter-spacing: 0.22em; color: rgba(255,255,255,0.22); margin: 0;
    text-transform: uppercase;
}
.st-auth-status-dot {
    width: 6px; height: 6px; border-radius: 50%; background: #ffffff;
    box-shadow: 0 0 7px rgba(255,255,255,0.8);
    animation: authDotPulse 2.4s ease-in-out infinite;
}
/* ============================================
   RESPONSIVO
   ============================================ */
@media (max-width: 380px) {
    .st-auth-inner { padding: 30px 16px 24px; }
    .st-auth-title { font-size: 2.8rem; }
    .st-auth-card { padding: 26px 20px 22px; }
    .st-auth-google-btn { font-size: 0.92rem; padding: 14px 16px; }
    .st-auth-chips { gap: 9px; }
    .st-auth-chips span { font-size: 0.55rem; letter-spacing: 0.16em; }
    .st-auth-logo-wrap { width: 84px; height: 84px; }
    .st-auth-logo-img, .st-auth-logo-fallback { width: 84px; height: 84px; }
}
@media (min-width: 600px) { .st-auth-inner { padding: 60px 24px 40px; } }
/* --- ui.css --- */
/* ============================================
   AUTH v5.0 — ANIMAÇÕES
   © 2026 LITE STUDIO
   ============================================ */
@keyframes authFadeDown { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes authFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes authCardIn {
    from { opacity: 0; transform: translateY(22px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes authGlowPulse {
    0%, 100% { opacity: 0.65; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.12); }
}
@keyframes authParticleRise {
    0% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-25vh) translateX(8px); }
    50% { transform: translateY(-50vh) translateX(-6px); }
    75% { transform: translateY(-75vh) translateX(5px); }
    100% { transform: translateY(-105vh) translateX(0); }
}
@keyframes authRingPulse { 0%, 100% { opacity: 0.35; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes authAccentSlide { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes authSpin { to { transform: rotate(360deg); } }
@keyframes authShine { 0% { left: -120%; } 100% { left: 130%; } }
@keyframes authDotPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }
@keyframes authBracketIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .st-auth-particle, .st-auth-bg-glow, .st-auth-logo-glow, .st-auth-logo-ring,
    .st-auth-card-accent, .st-auth-spinner, .st-auth-eyebrow-dot, .st-auth-status-dot,
    .st-auth-google-shine { animation: none !important; }
    .st-auth-card, .st-auth-eyebrow, .st-auth-card-title, .st-auth-ornament,
    .st-auth-google-btn, .st-auth-trust, .st-auth-chips, #googleBtnBox { animation: none !important; opacity: 1 !important; transform: none !important; }
}