/* Modern Alphanumeric Captcha Styles */
.captcha-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.captcha-content {
    background: #ffffff;
    margin: 10% auto;
    padding: 0;
    border-radius: 24px;
    width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: fadeInScale 0.4s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.captcha-header {
    background: linear-gradient(135deg, #0063af 0%, #004a83 100%);
    padding: 25px;
    color: white;
}

.captcha-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.captcha-header p {
    color: rgba(255, 255, 255, 0.8);
    margin: 8px 0 0;
    font-size: 0.9rem;
}

.captcha-body {
    padding: 30px;
}

.captcha-display {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    border: 2px dashed #dee2e6;
    position: relative;
    user-select: none;
}

.captcha-digit {
    display: inline-block;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.captcha-digit:hover {
    transform: scale(1.2) !important;
}

.captcha-input-group {
    position: relative;
    margin-bottom: 20px;
}

.captcha-input {
    width: 100%;
    padding: 15px 20px;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-weight: 700;
    transition: all 0.3s ease;
    outline: none;
}

.captcha-input:focus {
    border-color: #0063af;
    box-shadow: 0 0 0 4px rgba(0, 99, 175, 0.1);
}

.captcha-btn {
    width: 100%;
    padding: 15px;
    background: #0063af;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.captcha-btn:hover {
    background: #00508f;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 99, 175, 0.3);
}

.captcha-btn:active {
    transform: translateY(0);
}

.refresh-captcha {
    margin-top: 15px;
    color: #0063af;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: underline;
}

.close-captcha {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

.close-captcha:hover {
    color: white;
}

.captcha-status {
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    min-height: 20px;
}

.status-success {
    color: #28a745;
}

.status-error {
    color: #dc3545;
}

/* Pulse effect for refresh icon */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.spin {
    animation: spin 0.5s linear;
}