/* ============================================
   AUTH v3.1 - ZELO BLACK PREMIUM (Google-only)
   Visual refinado: glow interno, corner brackets,
   ornamento, shine no botão, entrada escalonada.
   © 2026 LITE STUDIO
   ============================================ */

.st-auth-container {
    background: radial-gradient(ellipse at 50% 28%, #0c0c0c 0%, #000000 78%);
    display: flex;
    flex-direction: column;
}

/* SCROLL INTERNO */
.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(201, 169, 97, 0.3); 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(201, 169, 97, 0.16) 0%, transparent 64%);
    animation: authGlowPulse 6s ease-in-out infinite;
}
.st-auth-bg-glow-2 {
    top: auto; bottom: -240px;
    background: radial-gradient(ellipse, rgba(229, 229, 229, 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: #C9A961; border-radius: 50%;
    animation: authParticleRise linear infinite;
    box-shadow: 0 0 6px rgba(201, 169, 97, 0.6);
}

/* ============================================
   BRAND
   ============================================ */
.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: 72px; height: 72px; margin: 0 auto 18px; }
.st-auth-logo-glow {
    position: absolute; inset: -22px; border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.35) 0%, transparent 70%);
    animation: authGlowPulse 4s ease-in-out infinite;
}
.st-auth-logo {
    position: relative; z-index: 2; width: 72px; height: 72px;
    background: #ffffff; color: #000000;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Teko', sans-serif; font-size: 2.8rem; font-weight: 700; line-height: 1;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.st-auth-logo-ring {
    position: absolute; inset: -9px; border: 1px solid rgba(201, 169, 97, 0.4);
    clip-path: polygon(0 0, calc(100% - 17px) 0, 100% 17px, 100% 100%, 17px 100%, 0 calc(100% - 17px));
    animation: authRingPulse 3s ease-in-out infinite;
}
.st-auth-logo-ring-2 {
    inset: -16px; border-color: rgba(201, 169, 97, 0.18);
    animation-delay: -1.5s;
}
.st-auth-title {
    font-family: 'Teko', sans-serif; font-size: 3.6rem; font-weight: 600;
    letter-spacing: 0.32em; line-height: 1; color: #ffffff;
    margin: 0 0 2px 0.32em; text-shadow: 0 0 34px rgba(255, 255, 255, 0.16);
}
.st-auth-tagline {
    font-family: 'JetBrains Mono', monospace; font-size: 0.62rem;
    letter-spacing: 0.45em; color: #C9A961; margin: 0 0 18px 0.45em;
}
.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: 1px;
    background: rgba(201, 169, 97, 0.5);
}
.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(201, 169, 97, 0.55); vertical-align: -0.3em;
}
.st-auth-quote-mark-end { margin-left: 2px; }
.st-auth-quote-text {
    font-family: 'Inter', sans-serif; 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: 18px;
    background:
        radial-gradient(120% 75% at 50% -8%, rgba(201, 169, 97, 0.09) 0%, transparent 60%),
        linear-gradient(180deg, #131313 0%, #0b0b0b 100%);
    border: 1px solid #242424;
    box-shadow:
        inset 0 1px 0 rgba(201, 169, 97, 0.16),
        inset 0 0 40px rgba(0,0,0,0.4),
        0 30px 70px -28px rgba(0, 0, 0, 0.85);
    animation: authCardIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}
.st-auth-card-center { text-align: center; }

/* Linha de luz no topo */
.st-auth-card-accent {
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(90deg, transparent, #C9A961 30%, #E5E5E5 50%, #C9A961 70%, transparent);
    background-size: 200% 100%; animation: authAccentSlide 4s linear infinite;
}

/* Cantos em "L" (HUD premium) */
.st-auth-corner {
    position: absolute; width: 15px; height: 15px;
    border: 1.5px solid rgba(201, 169, 97, 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; }
.st-corner-tr { top: 11px; right: 11px; border-left: none; border-bottom: none; }
.st-corner-bl { bottom: 11px; left: 11px; border-right: none; border-top: none; }
.st-corner-br { bottom: 11px; right: 11px; border-left: none; border-top: none; }

/* Eyebrow (label pequeno com dot) */
.st-auth-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'JetBrains Mono', monospace; font-size: 0.6rem;
    letter-spacing: 0.32em; color: rgba(201, 169, 97, 0.85);
    margin-bottom: 12px;
    animation: authFadeUp 0.5s ease 0.3s both;
}
.st-auth-eyebrow-dot {
    width: 6px; height: 6px; border-radius: 50%; background: #C9A961;
    box-shadow: 0 0 8px rgba(201, 169, 97, 0.8);
    animation: authDotPulse 2s ease-in-out infinite;
}

.st-auth-card-title {
    font-family: 'Teko', sans-serif; font-size: 2rem; font-weight: 600;
    letter-spacing: 0.06em; 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;
}

/* Ornamento dourado (losango entre linhas) */
.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: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 97, 0.5));
}
.st-auth-ornament span:last-child {
    background: linear-gradient(90deg, rgba(201, 169, 97, 0.5), transparent);
}
.st-auth-ornament i {
    width: 6px; height: 6px; background: #C9A961; transform: rotate(45deg);
    box-shadow: 0 0 8px rgba(201, 169, 97, 0.7);
}

/* ============================================
   BOTÃO GOOGLE (premium + shine)
   ============================================ */
.st-auth-google-btn {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    width: 100%; padding: 15px 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f1f1f1 100%);
    color: #1a1a1a; border: 1px solid #ffffff; border-radius: 12px;
    cursor: pointer;
    font-family: 'Inter', sans-serif; font-size: 0.98rem; font-weight: 600;
    letter-spacing: 0.01em;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
    animation: authFadeUp 0.5s ease 0.54s both;
}
.st-auth-google-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: #C9A961;
    box-shadow: 0 10px 28px rgba(0,0,0,0.45), 0 0 0 1px rgba(201, 169, 97, 0.55), 0 0 22px rgba(201, 169, 97, 0.25);
}
.st-auth-google-btn:active:not(:disabled) { transform: translateY(0) scale(0.99); }
.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; }

/* Brilho passando */
.st-auth-google-shine {
    position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
    background: linear-gradient(110deg, transparent, rgba(255,255,255,0.85), 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; }

/* Linha de confiança (curta) */
.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: 'JetBrains Mono', monospace; font-size: 0.66rem; letter-spacing: 0.04em;
    animation: authFadeUp 0.5s ease 0.62s both;
}
.st-auth-trust svg { color: rgba(201, 169, 97, 0.7); flex-shrink: 0; }

/* Chips tipográficos (1 palavra) */
.st-auth-chips {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    margin-top: 18px; padding-top: 16px; border-top: 1px solid #1c1c1c;
    animation: authFadeUp 0.5s ease 0.7s both;
}
.st-auth-chips span {
    font-family: 'JetBrains Mono', monospace; font-size: 0.6rem;
    letter-spacing: 0.22em; color: rgba(255, 255, 255, 0.4);
}
.st-auth-chips b {
    width: 3px; height: 3px; border-radius: 50%;
    background: rgba(201, 169, 97, 0.6);
}

/* ============================================
   BANNER DE ERRO
   ============================================ */
.st-auth-banner {
    display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px;
    margin-bottom: 18px; border-radius: 10px; 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: 700; font-size: 0.8rem; }
.st-auth-banner-body span { opacity: 0.85; }
.st-auth-banner-warning {
    background: rgba(201, 169, 97, 0.08); border: 1px solid rgba(201, 169, 97, 0.32); color: #e6c98a;
}

/* ============================================
   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(201, 169, 97, 0.18); border-top-color: #C9A961;
    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 RICO
   ============================================ */
.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: #C9A961; }
.st-auth-footer-links span { color: rgba(201, 169, 97, 0.4); font-size: 0.7rem; }
.st-auth-footer-line { height: 1px; background: linear-gradient(90deg, transparent, #2a2a2a, transparent); margin-bottom: 14px; }
.st-auth-version {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: 'JetBrains Mono', monospace; font-size: 0.58rem;
    letter-spacing: 0.22em; color: rgba(255, 255, 255, 0.22); margin: 0;
}
.st-auth-status-dot {
    width: 6px; height: 6px; border-radius: 50%; background: #10b981;
    box-shadow: 0 0 7px rgba(16, 185, 129, 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: 3rem; }
    .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; }
}
@media (min-width: 600px) { .st-auth-inner { padding: 60px 24px 40px; } }