/* ═══ CAPTCHA Component Styles ═══ */
.captcha-wrapper {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.captcha-wrapper:focus-within {
    border-color: #2b7a42;
    box-shadow: 0 0 0 3px rgba(43, 122, 66, 0.15);
}
.captcha-wrapper.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}
.captcha-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #2b7a42;
    margin-bottom: 10px;
    font-size: 0.9rem;
}
.captcha-label .captcha-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #2b7a42;
    color: white;
    border-radius: 8px;
    font-size: 0.8rem;
}
.captcha-image-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.captcha-image-container img {
    border-radius: 8px;
    border: 1px solid #ced4da;
    height: 50px;
    flex: 1;
    object-fit: contain;
    background: #fff;
    transition: opacity 0.3s ease;
}
.captcha-image-container img.captcha-loading {
    opacity: 0.4;
}
.captcha-refresh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid #2b7a42;
    background: white;
    color: #2b7a42;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.captcha-refresh-btn:hover {
    background: #2b7a42;
    color: white;
    transform: rotate(180deg);
}
.captcha-refresh-btn:active {
    transform: rotate(360deg) scale(0.95);
}
.captcha-refresh-btn.spinning i {
    animation: captchaSpin 0.6s ease-in-out;
}
@keyframes captchaSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.captcha-hint {
    font-size: 0.78rem;
    color: #6c757d;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ═══ Auth Card entrance animation ═══ */
.auth-card {
    animation: authCardIn 0.5s ease-out;
}
@keyframes authCardIn {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══ Auth Form field focus animation ═══ */
.auth-card .form-control:focus {
    border-color: #2b7a42;
    box-shadow: 0 0 0 3px rgba(43, 122, 66, 0.15);
}

/* ═══ Auth Submit button animation ═══ */
.btn-auth-submit {
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(43, 122, 66, 0.35);
}
.btn-auth-submit:active {
    transform: translateY(0);
}
