.captcha-container {
    margin: 15px 0;
    position: relative;
    z-index: 1;
}

.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin-bottom: 10px;
}

.captcha-image-wrapper {
    position: relative;
    display: inline-block;
}

.captcha-image {
    background: rgba(20, 10, 40, 0.9);
    border: 1px solid rgba(138, 43, 226, 0.5);
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.3), inset 0 0 15px rgba(138, 43, 226, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: inline-block;
}

.captcha-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 40%, rgba(138, 43, 226, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.captcha-code {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 6px;
    color: #fff;
    text-shadow: 
        0 0 10px rgba(138, 43, 226, 0.8),
        0 0 15px rgba(138, 43, 226, 0.5),
        1px 1px 3px rgba(0, 0, 0, 0.5);
    font-family: 'Courier New', monospace;
    position: relative;
    z-index: 1;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.captcha-refresh {
    background: rgba(138, 43, 226, 0.3);
    border: 1px solid rgba(138, 43, 226, 0.5);
    border-radius: 8px;
    padding: 8px 12px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease, transform 0.3s ease;
    font-size: 20px;
    line-height: 1;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
    min-width: auto;
    height: 38px;
    width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-refresh:hover {
    background: rgba(138, 43, 226, 0.5);
    border-color: rgba(138, 43, 226, 0.8);
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.6);
    transform: scale(1.05);
}

.captcha-refresh:active {
    transform: scale(0.98);
}

.captcha-input {
    width: 100%;
    max-width: 100%;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 4px;
    font-family: 'Courier New', monospace;
    margin: 10px 0 0 0;
    padding: 12px 16px !important;
}

.captcha-holder {
    margin: 18px 0;
}

.captcha-label {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    margin-bottom: 10px;
    text-align: center;
    font-size: 14px;
    text-shadow: 0 0 8px rgba(138, 43, 226, 0.4);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.captcha-code span {
    display: inline-block;
}

.captcha-refresh {
    transition: all 0.3s ease, transform 0.3s ease !important;
}
