/* ========== TARJETA PRINCIPAL ========== */
.code-glow-card {
    position: relative;
    width: fit-content;
    max-width: 450px;            /* 🔒 Límite en escritorio */
    padding: 3px;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    margin: 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(255, 191, 0, 0.1);
}

/* Borde animado que gira */
.code-glow-card::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: conic-gradient(
        transparent,
        #ffbf00,
        #ffea00,
        #ffbf00,
        transparent 30%
    );
    animation: rotateGold 3s linear infinite;
}

/* Fondo interior oscuro */
.auth-content {
    position: relative;
    background: #3d3c3c;
    padding: 15px 20px;          /* un poco más compacto */
    border-radius: 13px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Etiqueta decorativa */
.dev-tag {
    font-family: 'Courier New', monospace;
    color: #ece90b;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    opacity: 0.6;
    animation: pulseText 2s infinite;
}

/* Línea láser */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(245, 221, 3, 0.5);
    box-shadow: 0 0 10px #f1c603;
    z-index: 2;
    animation: laserMove 4s linear infinite;
    pointer-events: none;
}

/* ========== BOTÓN GOOGLE SIEMPRE AJUSTADO ========== */
.g_id_signin {
    width: auto !important;
    max-width: 100% !important;
    overflow: hidden;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}
.g_id_signin iframe {
    max-width: 100% !important;
}

/* ========== ANIMACIONES ========== */
@keyframes rotateGold {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes laserMove {
    0% { top: 0; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}
@keyframes pulseText {
    0%, 100% { opacity: 0.4; text-shadow: 0 0 0px #ffbf00; }
    30% { opacity: 1; text-shadow: 0 1 8px #6e6a3f; }
    50% { opacity: 1; text-shadow: 0 0 8px #ffbf00; }
}

/* Efecto hover */
.code-glow-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(240, 236, 6, 0.4);
}
.code-glow-card:hover::before {
    animation-duration: 1s;
}

/* ========== RESPONSIVE PARA MÓVILES ========== */
@media (max-width: 480px) {
    .code-glow-card {
        width: 100%;
        max-width: 100%;
        margin: 10px 5px;
    }
    .auth-content {
        padding: 10px 8px;
    }
    .g_id_signin {
        max-width: 280px !important;   /* aún más pequeño en pantallas angostas */
    }
}