.captcha {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;

    .container {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content:flex-start;
        gap: 2px;

        .captcha-image {
            width: 200px;
            height: 50px;
            border: 1px solid #ccc;
        }        

        .refresh-captcha {
            padding: 1px;
            width: 25px;
            height: 25px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            border-radius: 12.5px;
            border: none;
            color: black;

            transition: background-color 0.3s ease;

            &:hover {
                transform: scale(1.1);
            }

            img {
                width: 24px;
                height: 24px;

                &:active {
                    transform: rotate(180deg);
                    transition: transform 0.3s ease;
                }
            }
        }

    }

    input[type="text"] {
        font-size: 16px;
        width: 200px;
        padding: 5px;
        border: 1px solid #F69C00;
        border-radius: 4px;

        transition: border-color 0.3s ease;

        &:focus {
            border-color: #007bff;
            outline: none;
            box-shadow: 0 0 5px rgba(0, 86, 179, 0.5);
        }
        &::placeholder {
            color: #999;
        }
        &:focus::placeholder {
            color: #666;
        }
        &.is-valid {
            border: none;
        }
    }
}

@media screen and (max-width: 768px) {
    .captcha {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}