#authScreenOverlay {
    position: fixed;
    inset: 0;
    z-index: 30000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: linear-gradient(180deg, rgba(10, 22, 14, 0.96), rgba(4, 8, 6, 0.96));
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.auth-card {
    width: min(360px, 100%);
    background: #111827;
    color: #f8fafc;
    border: 1px solid rgba(46, 160, 67, 0.28);
    border-radius: 18px;
    padding: 22px 18px 18px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.auth-logo {
    font-size: 22px;
    font-weight: 800;
    text-align: center;
    color: #2EA043;
    letter-spacing: 0.3px;
}

.auth-subtitle {
    margin: 4px 0 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
}

.auth-btn-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-btn {
    width: 100%;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1px;
    cursor: pointer;
    transition: transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.auth-btn:hover { transform: translateY(-1px); }
.auth-btn:active { transform: translateY(0); }

.auth-btn .material-icons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.auth-btn img,
.auth-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-guest {
    background: #2EA043;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(46, 160, 67, 0.22);
}
.btn-guest:hover { background: #258a37; }

.btn-google {
    background: #ffffff;
    color: #1f2937;
    border-color: #e5e7eb;
}
.btn-google:hover { background: #f8fafc; }

.btn-facebook {
    background: #1877F2;
    color: #ffffff;
}
.btn-facebook:hover { background: #166FE5; }

.btn-admin {
    background: transparent;
    color: #94a3b8;
    border-color: #334155;
    font-weight: 500;
}
.btn-admin:hover {
    background: #1f2937;
    color: #e2e8f0;
    border-color: #475569;
}

/* Botão Email — alternativa clara, estilo neutro. */
.btn-user-email {
    background: #1f2937 !important;
    color: #f8fafc !important;
    border: 1px solid #334155 !important;
}

.btn-user-email .material-icons {
    color: #94a3b8;
}

.btn-user-email:hover {
    background: #263244 !important;
    border-color: #475569 !important;
}

/* Mantido por compatibilidade caso algum HTML antigo ainda use. */
.auth-btn-desc {
    display: none;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin: 2px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #263244;
}

#authErrorMsg {
    display: none;
    margin-top: 14px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(220, 53, 69, 0.15);
    color: #ff8a8a;
    font-size: 13px;
    text-align: center;
}

body.not-authenticated {
    overflow: hidden;
}

#guestModeBadge {
    position: fixed;
    top: 8px;
    right: 8px;
    z-index: 25000;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px 6px 10px;
    background: rgba(15, 23, 42, 0.92);
    color: #bbf7d0;
    border: 1px solid rgba(46, 160, 67, 0.35);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

#guestModeLoginBtn {
    border: none;
    border-radius: 999px;
    padding: 5px 8px;
    background: #2EA043;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.guest-action-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 40000;
    padding: 20px;
    background: rgba(0, 0, 0, 0.72);
}

.guest-action-card {
    width: min(360px, 100%);
    background: #111827;
    color: #f8fafc;
    border-radius: 18px;
    padding: 22px;
    text-align: center;
    border: 1px solid rgba(46, 160, 67, 0.32);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
}

.guest-action-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.guest-action-card p {
    margin: 0 0 18px;
    color: #cbd5e1;
    line-height: 1.45;
}

.guest-action-buttons {
    display: flex;
    gap: 10px;
}

.guest-action-buttons button {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    border: none;
    font-weight: 800;
    cursor: pointer;
}

.guest-action-login {
    background: #2EA043;
    color: #ffffff;
}

.guest-action-cancel {
    background: #263244;
    color: #e2e8f0;
}