/* Gelişmiş Captcha bileşenleri */

.captcha-wrapper {
    margin: 1rem 0 1.25rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f8faf8 0%, #f0f7f0 100%);
    border: 1px solid #e0e8e0;
    border-radius: 12px;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.captcha-wrapper:focus-within {
    border-color: #589442;
    box-shadow: 0 0 0 3px rgba(88, 148, 66, 0.12);
}

.captcha-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #495057;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.captcha-label i {
    color: #589442;
}

.captcha-challenge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.captcha-math {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    min-width: 120px;
    justify-content: center;
}

.captcha-math .op {
    color: #589442;
    font-weight: 700;
}

.captcha-input-wrap {
    flex: 1;
    min-width: 80px;
}

.captcha-input-wrap input {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 1.1rem;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.captcha-input-wrap input:focus {
    outline: none;
    border-color: #589442;
    box-shadow: 0 0 0 2px rgba(88, 148, 66, 0.15);
}

.captcha-input-wrap input.captcha-error {
    border-color: #dc3545;
    background: #fff5f5;
}

/* reCAPTCHA badge alanı */
.recaptcha-badge-note {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* Honeypot - görünmez */
.captcha-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Yükleme durumu */
.captcha-submitting {
    pointer-events: none;
    opacity: 0.7;
}

.captcha-submitting .auth-submit-btn {
    position: relative;
}

.captcha-submitting .auth-submit-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: captcha-spin 0.8s linear infinite;
}

@keyframes captcha-spin {
    to { transform: rotate(360deg); }
}
