/* WebAuthn Plugin Styles */

/* Overlay для загрузки */
.webauthn-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.webauthn-modal {
    background: white;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 300px;
}

.webauthn-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.webauthn-modal p {
    margin: 0;
    color: #333;
    font-size: 16px;
}

/* Кнопка входа через Face ID */
.webauthn-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    width: 100%;
    margin-bottom: 16px;
}

.webauthn-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.webauthn-login-btn:active {
    transform: translateY(0);
}

.webauthn-login-btn svg {
    flex-shrink: 0;
}

/* Разделитель "или" */
.webauthn-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #999;
    font-size: 14px;
}

.webauthn-divider::before,
.webauthn-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.webauthn-divider span {
    padding: 0 16px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .webauthn-login-btn {
        font-size: 15px;
        padding: 12px 20px;
    }
}

/* Анимация появления */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.webauthn-login-btn,
.webauthn-prompt {
    animation: fadeInScale 0.3s ease-out;
}