/* Основные стили капчи */
.captcha-container {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
}

.captcha-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.captcha-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #2b2d42;
}

.captcha-display {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
    position: relative;
    overflow: hidden;
}

.captcha-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(2px);
}

.captcha-text {
    display: flex;
    position: relative;
    user-select: none;
}

.captcha-char {
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0 0.2rem;
    position: relative;
    display: inline-block;
    transition: transform 0.3s;
}

/* Разные цвета для разных типов символов */
.char-letter {
    color: #3a0ca3;
    background: linear-gradient(135deg, #3a0ca3, #4361ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.char-number {
    color: #f72585;
    background: linear-gradient(135deg, #f72585, #b5179e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.char-symbol {
    color: #4cc9f0;
    background: linear-gradient(135deg, #4cc9f0, #4895ef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.2rem;
}

.captcha-controls {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.captcha-controls input {
    flex: 1;
    padding: 0.8rem;
    font-size: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.captcha-controls button {
    width: auto;
    padding: 0 1.5rem;
    margin: 0;
    font-size: 0.9rem;
    background-color: #4361ee;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.captcha-controls button:hover {
    background-color: #3f37c9;
    transform: translateY(-1px);
}

.refresh-btn {
    background: none;
    color: #4361ee;
    border: 1px solid #4361ee;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.refresh-btn:hover {
    background: rgba(67, 97, 238, 0.1);
    transform: none;
}

.refresh-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.refresh-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.refresh-btn {
    box-sizing: border-box;
    max-width: none;
    overflow: hidden;
    white-space: nowrap;
}

.refresh-btn:disabled {
    transform: none !important;
    scale: 1 !important;
    pointer-events: none;
}

.refresh-btn:disabled svg {
    display: none;
}

.refresh-text {
    margin-left: 0.5rem;
}

.refresh-btn:disabled .refresh-text {
    display: none;
}

.error {
    color: #f72585;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.attempts-counter {
    font-size: 0.8rem;
    color: #8d99ae;
    margin-top: 0.5rem;
    text-align: right;
    transition: all 0.3s;
}